From ae15d730cb199443d723694ee3b2bb7f94ea966c Mon Sep 17 00:00:00 2001
From: Sam Symons <sam@samsymons.com>
Date: Thu, 4 Apr 2024 08:38:22 -0700
Subject: [PATCH] Remove extra VPN background refresh waitlist code.

---
 DuckDuckGo/AppDelegate.swift | 6 ------
 DuckDuckGo/Info.plist        | 1 -
 2 files changed, 7 deletions(-)

diff --git a/DuckDuckGo/AppDelegate.swift b/DuckDuckGo/AppDelegate.swift
index 42def30fc4..d6a15bc380 100644
--- a/DuckDuckGo/AppDelegate.swift
+++ b/DuckDuckGo/AppDelegate.swift
@@ -303,12 +303,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
         // Having both in `didBecomeActive` can sometimes cause the exception when running on a physical device, so registration happens here.
         AppConfigurationFetch.registerBackgroundRefreshTaskHandler()
 
-#if NETWORK_PROTECTION
-        if vpnFeatureVisibility.shouldKeepVPNAccessViaWaitlist() {
-            VPNWaitlist.shared.registerBackgroundRefreshTaskHandler()
-        }
-#endif
-
         RemoteMessaging.registerBackgroundRefreshTaskHandler(
             bookmarksDatabase: bookmarksDatabase,
             favoritesDisplayMode: AppDependencyProvider.shared.appSettings.favoritesDisplayMode
diff --git a/DuckDuckGo/Info.plist b/DuckDuckGo/Info.plist
index e5d5328d08..86ef7b8d64 100644
--- a/DuckDuckGo/Info.plist
+++ b/DuckDuckGo/Info.plist
@@ -4,7 +4,6 @@
 <dict>
 	<key>BGTaskSchedulerPermittedIdentifiers</key>
 	<array>
-		<string>com.duckduckgo.app.vpnWaitlistStatus</string>
 		<string>com.duckduckgo.app.configurationRefresh</string>
 		<string>com.duckduckgo.app.remoteMessageRefresh</string>
 	</array>