From 7b5bb2e79c21c7348343f418e7e1721a705b1ea9 Mon Sep 17 00:00:00 2001 From: Tomas Strba Date: Tue, 9 Apr 2024 15:22:37 +0200 Subject: [PATCH] Revert "Menu item to reset the pixel" This reverts commit f8a8371a3145916d1541d654c76b2fb21f495a3b. --- DuckDuckGo/Menus/MainMenu.swift | 1 - DuckDuckGo/Menus/MainMenuActions.swift | 4 ---- 2 files changed, 5 deletions(-) diff --git a/DuckDuckGo/Menus/MainMenu.swift b/DuckDuckGo/Menus/MainMenu.swift index a6c31f6d5a..2e6c0d2639 100644 --- a/DuckDuckGo/Menus/MainMenu.swift +++ b/DuckDuckGo/Menus/MainMenu.swift @@ -588,7 +588,6 @@ import SubscriptionUI } NSMenuItem(title: "Reset Email Protection InContext Signup Prompt", action: #selector(MainViewController.resetEmailProtectionInContextPrompt)) NSMenuItem(title: "Reset Daily Pixels", action: #selector(MainViewController.resetDailyPixels)) - NSMenuItem(title: "Reset History Save Failed Daily Pixel", action: #selector(MainViewController.resetHistorySaveFailedDailyPixel(_:))) }.withAccessibilityIdentifier("MainMenu.resetData") NSMenuItem(title: "UI Triggers") { NSMenuItem(title: "Show Save Credentials Popover", action: #selector(MainViewController.showSaveCredentialsPopover)) diff --git a/DuckDuckGo/Menus/MainMenuActions.swift b/DuckDuckGo/Menus/MainMenuActions.swift index ace3fdb646..fc0b5c9dc2 100644 --- a/DuckDuckGo/Menus/MainMenuActions.swift +++ b/DuckDuckGo/Menus/MainMenuActions.swift @@ -745,10 +745,6 @@ extension MainViewController { UserDefaults.standard.removePersistentDomain(forName: DailyPixel.Constant.dailyPixelStorageIdentifier) } - @objc func resetHistorySaveFailedDailyPixel(_ sender: Any?) { - Pixel.shared?.clearRepetitions(for: .debug(event: .historySaveFailedDaily)) - } - @objc func in10PercentSurveyOn(_ sender: Any?) { UserDefaults.standard.set(true, forKey: UserDefaultsWrapper.Key.homePageShowSurveyDay14in10Percent.rawValue) UserDefaults.standard.set(true, forKey: UserDefaultsWrapper.Key.homePageShowSurveyDay0in10Percent.rawValue)