Skip to content

Commit

Permalink
fix the compile errors in the development build
Browse files Browse the repository at this point in the history
  • Loading branch information
zihejia committed May 12, 2024
1 parent a90cd09 commit 1d1a468
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Mixpanel/Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ internal static void DoTrack(string eventName, Value properties)
data["properties"] = properties;
data["$mp_metadata"] = Metadata.GetEventMetadata();

#if DEVELOPMENT_BUILD
if (!eventName.StartsWith("$")) {
MixpanelStorage.HasTracked = true;
}
#endif

MixpanelStorage.EnqueueTrackingData(data, MixpanelStorage.FlushType.EVENTS);
}

Expand All @@ -366,9 +360,6 @@ internal static void DoEngage(Value properties)
properties["$mp_metadata"] = Metadata.GetPeopleMetadata();

MixpanelStorage.EnqueueTrackingData(properties, MixpanelStorage.FlushType.PEOPLE);
#if DEVELOPMENT_BUILD
MixpanelStorage.HasUsedPeople = true;
#endif
}

internal static void DoClear()
Expand Down

0 comments on commit 1d1a468

Please sign in to comment.