Commit 6efb4b68 authored by seokju@webkit.org's avatar seokju@webkit.org

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:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7fa2cb82
2013-12-02 Seokju Kwon <seokju@webkit.org>
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 <mtibor@inf.u-szeged.hu>
Fix build warning in EventHandler.cpp
......@@ -162,18 +162,6 @@ void InspectorAgent::inspect(PassRefPtr<TypeBuilder::Runtime::RemoteObject> obje
m_pendingInspectData.second = hints;
}
URL InspectorAgent::inspectedURL() const
{
return m_inspectedPage->mainFrame().document()->url();
}
URL InspectorAgent::inspectedURLWithoutFragment() const
{
URL url = inspectedURL();
url.removeFragmentIdentifier();
return url;
}
bool InspectorAgent::developerExtrasEnabled() const
{
if (!m_inspectedPage)
......
......@@ -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 InjectedScriptManager;
class InspectorInspectorFrontendDispatcher;
class InspectorObject;
class InstrumentingAgents;
class URL;
class Page;
typedef String ErrorString;
......@@ -67,9 +64,6 @@ public:
void enable(ErrorString*);
void disable(ErrorString*);
URL inspectedURL() const;
URL inspectedURLWithoutFragment() const;
virtual void didCreateFrontendAndBackend(InspectorFrontendChannel*, InspectorBackendDispatcher*) OVERRIDE;
virtual void willDestroyFrontendAndBackend() OVERRIDE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment