Index: Source/modules/background_sync/PeriodicSyncRegistration.cpp |
diff --git a/Source/modules/background_sync/PeriodicSyncRegistration.cpp b/Source/modules/background_sync/PeriodicSyncRegistration.cpp |
index 092da01b94407745901977bdc5ff78595073c1e4..bd9865caa70bf22a4e685cd3a7526811c178b99a 100644 |
--- a/Source/modules/background_sync/PeriodicSyncRegistration.cpp |
+++ b/Source/modules/background_sync/PeriodicSyncRegistration.cpp |
@@ -66,13 +66,6 @@ |
PeriodicSyncRegistration::~PeriodicSyncRegistration() |
{ |
- Platform* currentPlatform = Platform::current(); |
- if (!currentPlatform) |
- return; |
- WebSyncProvider* syncProvider = currentPlatform->backgroundSyncProvider(); |
- if (!syncProvider) |
- return; |
- syncProvider->releaseRegistration(m_id); |
} |
ScriptPromise PeriodicSyncRegistration::unregister(ScriptState* scriptState) |