Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit 8e1bedf

Browse files
committed
Last few analytics references (hopefully)
1 parent 4be825e commit 8e1bedf

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

Assets/Scripts/entitlement/OAuth2Identity.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ public IEnumerator<object> Authorize(System.Action onSuccess, System.Action onFa
312312

313313
if (LoggedIn) {
314314
onSuccess();
315-
PeltzerMain.Instance.Analytics.UserAuthenticated();
316315
} else {
317316
onFailure();
318317
}

Assets/Scripts/model/main/PeltzerMain.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace com.google.apps.peltzer.client.model.main {
4141
public enum MenuAction {
4242
SAVE, LOAD, SHOWCASE, TAKE_PHOTO, SHARE, CLEAR, BLOCKMODE, NOTHING,
4343
SHOW_SAVE_CONFIRM, CANCEL_SAVE, NEW_WITH_SAVE, SIGN_IN, SIGN_OUT, ADD_REFERENCE,
44-
TOGGLE_SOUND, TOGGLE_PERMISSIONS, SAVE_COPY, PUBLISH, PUBLISHED_TAKE_OFF_HEADSET_DISMISS,
44+
TOGGLE_SOUND, SAVE_COPY, PUBLISH, PUBLISHED_TAKE_OFF_HEADSET_DISMISS,
4545
TUTORIAL_START, TUTORIAL_DISMISS, TUTORIAL_PROMPT, TUTORIAL_CONFIRM_DISMISS,
4646
TUTORIAL_SAVE_AND_CONFIRM, TUTORIAL_DONT_SAVE_AND_CONFIRM, PUBLISH_AFTER_SAVE_DISMISS,
4747
PUBLISH_SIGN_IN_DISMISS, PUBLISH_AFTER_SAVE_CONFIRM, TUTORIAL_EXIT_YES, TUTORIAL_EXIT_NO,
@@ -643,9 +643,6 @@ void Start() {
643643
audioLibrary = FindObjectOfType<AudioLibrary>();
644644
audioLibrary.Setup();
645645

646-
// Get the Analytics library.
647-
analytics = FindObjectOfType<Analytics>();
648-
649646
// Get the menu main.
650647
polyMenuMain = FindObjectOfType<PolyMenuMain>();
651648

@@ -779,11 +776,6 @@ private bool TrySetup() {
779776
audioLibrary.ToggleSounds();
780777
}
781778

782-
// If the user has disabled analytics permissions according to their player preferences, toggle them 'off'.
783-
if (PlayerPrefs.HasKey(DISABLE_ANALYTICS_KEY) && PlayerPrefs.GetString(DISABLE_ANALYTICS_KEY) == "true") {
784-
analytics.TogglePermissions();
785-
}
786-
787779
// Set the environment theme based on last session.
788780
environmentThemeManager.Setup();
789781
if (PlayerPrefs.HasKey(ENVIRONMENT_THEME_KEY)) {
@@ -895,7 +887,6 @@ public void InvokeMenuAction(MenuAction action, String featureString = null) {
895887
case MenuAction.CLEAR:
896888
SetAllPromptsInactive();
897889
CreateNewModel();
898-
analytics.SuccessfulOperation("newModel");
899890
break;
900891
case MenuAction.LOAD:
901892
break;
@@ -975,9 +966,6 @@ public void InvokeMenuAction(MenuAction action, String featureString = null) {
975966
case MenuAction.TOGGLE_SOUND:
976967
audioLibrary.ToggleSounds();
977968
break;
978-
case MenuAction.TOGGLE_PERMISSIONS:
979-
analytics.TogglePermissions();
980-
break;
981969
case MenuAction.TOGGLE_FEATURE:
982970
polyWorldBounds.HandleFeatureToggle();
983971
break;

0 commit comments

Comments
 (0)