Title: [159923] trunk/Source/WebCore
Revision
159923
Author
[email protected]
Date
2013-12-02 02:12:04 -0800 (Mon, 02 Dec 2013)

Log Message

Web Inspector: Remove unused functions from InspectorAgent
https://bugs.webkit.org/show_bug.cgi?id=125061

Reviewed by Antoine Quint.

Get rid of unused functions, redundant inclusion and forward declaration.

No new tests, no behavior changes.

* inspector/InspectorAgent.cpp:
* inspector/InspectorAgent.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (159922 => 159923)


--- trunk/Source/WebCore/ChangeLog	2013-12-02 10:04:21 UTC (rev 159922)
+++ trunk/Source/WebCore/ChangeLog	2013-12-02 10:12:04 UTC (rev 159923)
@@ -1,3 +1,17 @@
+2013-12-02  Seokju Kwon  <[email protected]>
+
+        Web Inspector: Remove unused functions from InspectorAgent
+        https://bugs.webkit.org/show_bug.cgi?id=125061
+
+        Reviewed by Antoine Quint.
+
+        Get rid of unused functions, redundant inclusion and forward declaration.
+
+        No new tests, no behavior changes.
+
+        * inspector/InspectorAgent.cpp:
+        * inspector/InspectorAgent.h:
+
 2013-12-02  Tibor Meszaros  <[email protected]>
 
         Fix build warning in EventHandler.cpp

Modified: trunk/Source/WebCore/inspector/InspectorAgent.cpp (159922 => 159923)


--- trunk/Source/WebCore/inspector/InspectorAgent.cpp	2013-12-02 10:04:21 UTC (rev 159922)
+++ trunk/Source/WebCore/inspector/InspectorAgent.cpp	2013-12-02 10:12:04 UTC (rev 159923)
@@ -162,18 +162,6 @@
     m_pendingInspectData.second = hints;
 }
 
-URL InspectorAgent::inspectedURL() const
-{
-    return m_inspectedPage->mainFrame().document()->url();
-}
-
-URL InspectorAgent::inspectedURLWithoutFragment() const
-{
-    URL url = ""
-    url.removeFragmentIdentifier();
-    return url;
-}
-
 bool InspectorAgent::developerExtrasEnabled() const
 {
     if (!m_inspectedPage)

Modified: trunk/Source/WebCore/inspector/InspectorAgent.h (159922 => 159923)


--- trunk/Source/WebCore/inspector/InspectorAgent.h	2013-12-02 10:04:21 UTC (rev 159922)
+++ trunk/Source/WebCore/inspector/InspectorAgent.h	2013-12-02 10:12:04 UTC (rev 159923)
@@ -31,11 +31,9 @@
 #define InspectorAgent_h
 
 #include "InspectorBaseAgent.h"
-#include <wtf/Forward.h>
 #include <wtf/HashMap.h>
 #include <wtf/PassOwnPtr.h>
 #include <wtf/Vector.h>
-#include <wtf/text/WTFString.h>
 
 namespace WebCore {
 
@@ -46,7 +44,6 @@
 class InspectorInspectorFrontendDispatcher;
 class InspectorObject;
 class InstrumentingAgents;
-class URL;
 class Page;
 
 typedef String ErrorString;
@@ -67,9 +64,6 @@
     void enable(ErrorString*);
     void disable(ErrorString*);
 
-    URL inspectedURL() const;
-    URL inspectedURLWithoutFragment() const;
-
     virtual void didCreateFrontendAndBackend(InspectorFrontendChannel*, InspectorBackendDispatcher*) OVERRIDE;
     virtual void willDestroyFrontendAndBackend() OVERRIDE;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to