Title: [208993] trunk/Source/WebCore
Revision
208993
Author
[email protected]
Date
2016-11-27 16:10:45 -0800 (Sun, 27 Nov 2016)

Log Message

Remove unused DOMRequestState
https://bugs.webkit.org/show_bug.cgi?id=165085

Patch by Sam Weinig <[email protected]> on 2016-11-27
Reviewed by Simon Fraser.

Remove DOMRequestState. It was unused.

* Modules/fetch/FetchBody.cpp:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/DOMRequestState.h: Removed.

Modified Paths

Removed Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (208992 => 208993)


--- trunk/Source/WebCore/ChangeLog	2016-11-27 21:57:29 UTC (rev 208992)
+++ trunk/Source/WebCore/ChangeLog	2016-11-28 00:10:45 UTC (rev 208993)
@@ -1,3 +1,16 @@
+2016-11-27  Sam Weinig  <[email protected]>
+
+        Remove unused DOMRequestState
+        https://bugs.webkit.org/show_bug.cgi?id=165085
+
+        Reviewed by Simon Fraser.
+
+        Remove DOMRequestState. It was unused.
+
+        * Modules/fetch/FetchBody.cpp:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/js/DOMRequestState.h: Removed.
+
 2016-11-27  Csaba Osztrogonác  <[email protected]>
 
         Fix various --minimal build issues

Modified: trunk/Source/WebCore/Modules/fetch/FetchBody.cpp (208992 => 208993)


--- trunk/Source/WebCore/Modules/fetch/FetchBody.cpp	2016-11-27 21:57:29 UTC (rev 208992)
+++ trunk/Source/WebCore/Modules/fetch/FetchBody.cpp	2016-11-28 00:10:45 UTC (rev 208993)
@@ -31,8 +31,8 @@
 
 #if ENABLE(FETCH_API)
 
-#include "DOMRequestState.h"
 #include "Dictionary.h"
+#include "Document.h"
 #include "FetchBodyOwner.h"
 #include "FetchHeaders.h"
 #include "FetchResponseSource.h"

Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (208992 => 208993)


--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2016-11-27 21:57:29 UTC (rev 208992)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2016-11-28 00:10:45 UTC (rev 208993)
@@ -2204,7 +2204,6 @@
 		5185FCB21BB4C4E80012898F /* IndexedDB.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D719AE181106E00016DC51 /* IndexedDB.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		5185FCB31BB4C4E80012898F /* WorkerGlobalScopeIndexedDatabase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51D719B1181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.cpp */; };
 		5185FCB41BB4C4E80012898F /* WorkerGlobalScopeIndexedDatabase.h in Headers */ = {isa = PBXBuildFile; fileRef = 51D719B2181106E00016DC51 /* WorkerGlobalScopeIndexedDatabase.h */; };
-		5185FCB71BB4C7670012898F /* DOMRequestState.h in Headers */ = {isa = PBXBuildFile; fileRef = 5185FCB61BB4C7610012898F /* DOMRequestState.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		5185FCB91BB4CBF80012898F /* IDBConnectionToClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 510A58FE1BB07AA500C19282 /* IDBConnectionToClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		5185FCBA1BB4CBF80012898F /* IDBServer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 510A58EF1BAB720F00C19282 /* IDBServer.cpp */; };
 		5185FCBB1BB4CBF80012898F /* IDBServer.h in Headers */ = {isa = PBXBuildFile; fileRef = 510A58F01BAB720F00C19282 /* IDBServer.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -9399,7 +9398,6 @@
 		517B25A81CC820320061C011 /* IDBConnectionProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBConnectionProxy.h; sourceTree = "<group>"; };
 		517FBA17151AA71B00B57959 /* DOMWindowExtension.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMWindowExtension.cpp; sourceTree = "<group>"; };
 		517FBA18151AA71B00B57959 /* DOMWindowExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMWindowExtension.h; sourceTree = "<group>"; };
-		5185FCB61BB4C7610012898F /* DOMRequestState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMRequestState.h; sourceTree = "<group>"; };
 		5185FCBC1BB5CB770012898F /* IDBConnectionToServer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IDBConnectionToServer.cpp; sourceTree = "<group>"; };
 		5185FCBD1BB5CB770012898F /* IDBConnectionToServerDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDBConnectionToServerDelegate.h; sourceTree = "<group>"; };
 		518864DE1BBAF30F00E540C9 /* UniqueIDBDatabase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UniqueIDBDatabase.cpp; sourceTree = "<group>"; };
@@ -9739,10 +9737,10 @@
 		5CE5D9A31DB897C300CE7A8D /* TextEncoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextEncoder.cpp; sourceTree = "<group>"; };
 		5CE5D9A41DB897C300CE7A8D /* TextEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextEncoder.h; sourceTree = "<group>"; };
 		5CE5D9A51DB897C300CE7A8D /* TextEncoder.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = TextEncoder.idl; sourceTree = "<group>"; };
-		5CE5D9A71DB899FC00CE7A8D /* JSTextDecoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSTextDecoder.cpp; path = JSTextDecoder.cpp; sourceTree = "<group>"; };
-		5CE5D9A81DB899FC00CE7A8D /* JSTextDecoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSTextDecoder.h; path = JSTextDecoder.h; sourceTree = "<group>"; };
-		5CE5D9A91DB899FC00CE7A8D /* JSTextEncoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSTextEncoder.cpp; path = JSTextEncoder.cpp; sourceTree = "<group>"; };
-		5CE5D9AA1DB899FC00CE7A8D /* JSTextEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSTextEncoder.h; path = JSTextEncoder.h; sourceTree = "<group>"; };
+		5CE5D9A71DB899FC00CE7A8D /* JSTextDecoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSTextDecoder.cpp; sourceTree = "<group>"; };
+		5CE5D9A81DB899FC00CE7A8D /* JSTextDecoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTextDecoder.h; sourceTree = "<group>"; };
+		5CE5D9A91DB899FC00CE7A8D /* JSTextEncoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSTextEncoder.cpp; sourceTree = "<group>"; };
+		5CE5D9AA1DB899FC00CE7A8D /* JSTextEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTextEncoder.h; sourceTree = "<group>"; };
 		5CFC434E192406A900A0D3B5 /* PointerLockController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PointerLockController.cpp; sourceTree = "<group>"; };
 		5CFC434F192406A900A0D3B5 /* PointerLockController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PointerLockController.h; sourceTree = "<group>"; };
 		5D21A80013ECE5DF00BB7064 /* WebVTTParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebVTTParser.cpp; sourceTree = "<group>"; };
@@ -21856,7 +21854,6 @@
 				312D67B01535691F00563D0D /* Dictionary.cpp */,
 				316023EF1532C40C00D50FF4 /* Dictionary.h */,
 				B56576E717DA94E200A56BDC /* DOMConstructorWithDocument.h */,
-				5185FCB61BB4C7610012898F /* DOMRequestState.h */,
 				BC53DA471143134D000D817E /* DOMWrapperWorld.cpp */,
 				BC53DA2D1143121E000D817E /* DOMWrapperWorld.h */,
 				1432E8480C51493F00B1500F /* GCController.cpp */,
@@ -25379,7 +25376,6 @@
 				0F4710AF1DB56AFC002DCEC3 /* DOMRect.h in Headers */,
 				0F4710B11DB56AFC002DCEC3 /* DOMRectInit.h in Headers */,
 				0F4710B31DB56AFC002DCEC3 /* DOMRectReadOnly.h in Headers */,
-				5185FCB71BB4C7670012898F /* DOMRequestState.h in Headers */,
 				BC5A86850C33676000EEA649 /* DOMSelection.h in Headers */,
 				C544274B11A57E7A0063A749 /* DOMStringList.h in Headers */,
 				BC64640A11D7F304006455B0 /* DOMStringMap.h in Headers */,

Deleted: trunk/Source/WebCore/bindings/js/DOMRequestState.h (208992 => 208993)


--- trunk/Source/WebCore/bindings/js/DOMRequestState.h	2016-11-27 21:57:29 UTC (rev 208992)
+++ trunk/Source/WebCore/bindings/js/DOMRequestState.h	2016-11-28 00:10:45 UTC (rev 208993)
@@ -1,79 +0,0 @@
-/*
- * Copyright (C) 2012 Michael Pruett <[email protected]>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#include "DOMWrapperWorld.h"
-#include "Document.h"
-#include "ScriptState.h"
-#include "WorkerGlobalScope.h"
-
-namespace WebCore {
-
-class ScriptExecutionContext;
-
-class DOMRequestState {
-public:
-    explicit DOMRequestState(ScriptExecutionContext* scriptExecutionContext)
-        : m_scriptExecutionContext(scriptExecutionContext)
-    {
-        if (is<Document>(*m_scriptExecutionContext)) {
-            Document& document = downcast<Document>(*m_scriptExecutionContext);
-            m_exec = execStateFromPage(mainThreadNormalWorld(), document.page());
-        } else {
-            WorkerGlobalScope* workerGlobalScope = static_cast<WorkerGlobalScope*>(m_scriptExecutionContext);
-            m_exec = execStateFromWorkerGlobalScope(workerGlobalScope);
-        }
-    }
-
-    void clear()
-    {
-        m_scriptExecutionContext = nullptr;
-        m_exec = nullptr;
-    }
-
-    class Scope {
-    public:
-        explicit Scope(DOMRequestState& state)
-            : m_locker(state.exec())
-        {
-        }
-    private:
-        JSC::JSLockHolder m_locker;
-    };
-
-    JSC::ExecState* exec()
-    {
-        return m_exec;
-    }
-
-private:
-    ScriptExecutionContext* m_scriptExecutionContext;
-    JSC::ExecState* m_exec;
-};
-
-}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to