Skip to content

Commit aa1a9c1

Browse files
committed
Move functions.
1 parent 0ba79ee commit aa1a9c1

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

analytics/src/analytics_desktop.cc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -336,16 +336,7 @@ void ResetAnalyticsData() {
336336
g_fake_instance_id++;
337337
}
338338

339-
// --- Stub Implementations for Unsupported Features ---
340-
341-
void SetConsent(const std::map<ConsentType, ConsentStatus>& consent_settings) {
342-
FIREBASE_ASSERT_RETURN_VOID(internal::IsInitialized());
343-
344-
// Not supported by the Windows C API.
345-
(void)consent_settings; // Mark as unused
346-
LogWarning(
347-
"Analytics: SetConsent() is not supported and has no effect on Desktop.");
348-
}
339+
// Overloaded versions of LogEvent for convenience.
349340

350341
void LogEvent(const char* name) {
351342
LogEvent(name, static_cast<const Parameter*>(nullptr), 0);
@@ -391,6 +382,17 @@ void LogEvent(const char* name, const char* parameter_name,
391382
LogEvent(name, &param, 1);
392383
}
393384

385+
// --- Stub Implementations for Unsupported Features ---
386+
387+
void SetConsent(const std::map<ConsentType, ConsentStatus>& consent_settings) {
388+
FIREBASE_ASSERT_RETURN_VOID(internal::IsInitialized());
389+
390+
// Not supported by the Windows C API.
391+
(void)consent_settings; // Mark as unused
392+
LogWarning(
393+
"Analytics: SetConsent() is not supported and has no effect on Desktop.");
394+
}
395+
394396
void InitiateOnDeviceConversionMeasurementWithEmailAddress(
395397
const char* email_address) {
396398
FIREBASE_ASSERT_RETURN_VOID(internal::IsInitialized());

0 commit comments

Comments
 (0)