Skip to content
Permalink
Browse files
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:


Canonical link: https://commits.webkit.org/143167@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Seokju Kwon committed Dec 2, 2013
1 parent 9fc825e commit e47eb4fadcc453b51cde0527b8c06d5cad6abd6a
Showing 3 changed files with 14 additions and 18 deletions.
@@ -1,3 +1,17 @@
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 @@ class InspectorAgent : public InspectorBaseAgent, public InspectorInspectorBacke
void enable(ErrorString*);
void disable(ErrorString*);

URL inspectedURL() const;
URL inspectedURLWithoutFragment() const;

virtual void didCreateFrontendAndBackend(InspectorFrontendChannel*, InspectorBackendDispatcher*) OVERRIDE;
virtual void willDestroyFrontendAndBackend() OVERRIDE;

0 comments on commit e47eb4f

Please sign in to comment.