Permalink
Browse files

Remove RequestedUrl command

  • Loading branch information...
1 parent 14a3808 commit e983c63008992336213b7b41be6eef311712df73 @mhoran mhoran committed Nov 18, 2012
@@ -74,10 +74,6 @@ def response_headers
Hash[command("Headers").split("\n").map { |header| header.split(": ") }]
end
- def requested_url
- command("RequestedUrl")
- end
-
def current_url
command("CurrentUrl")
end
@@ -25,10 +25,6 @@ def current_url
browser.current_url
end
- def requested_url
- browser.requested_url
- end
-
def visit(path)
browser.visit(path)
end
View
@@ -19,7 +19,6 @@
#include "GetCookies.h"
#include "SetProxy.h"
#include "ConsoleMessages.h"
-#include "RequestedUrl.h"
#include "CurrentUrl.h"
#include "SetTimeout.h"
#include "GetTimeout.h"
View
@@ -1,13 +0,0 @@
-#include "RequestedUrl.h"
-#include "WebPage.h"
-#include "WebPageManager.h"
-
-RequestedUrl::RequestedUrl(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
-}
-
-void RequestedUrl::start() {
- QUrl humanUrl = page()->currentFrame()->requestedUrl();
- QByteArray encodedBytes = humanUrl.toEncoded();
- emit finished(new Response(true, encodedBytes));
-}
-
View
@@ -1,10 +0,0 @@
-#include "SocketCommand.h"
-
-class RequestedUrl : public SocketCommand {
- Q_OBJECT
-
- public:
- RequestedUrl(WebPageManager *, QStringList &arguments, QObject *parent = 0);
- virtual void start();
-};
-
View
@@ -21,7 +21,6 @@ CHECK_COMMAND(ClearCookies)
CHECK_COMMAND(GetCookies)
CHECK_COMMAND(SetProxy)
CHECK_COMMAND(ConsoleMessages)
-CHECK_COMMAND(RequestedUrl)
CHECK_COMMAND(CurrentUrl)
CHECK_COMMAND(ResizeWindow)
CHECK_COMMAND(IgnoreSslErrors)
View
@@ -14,7 +14,6 @@ HEADERS = \
IgnoreSslErrors.h \
ResizeWindow.h \
CurrentUrl.h \
- RequestedUrl.h \
ConsoleMessages.h \
WebPage.h \
Server.h \
@@ -71,7 +70,6 @@ SOURCES = \
IgnoreSslErrors.cpp \
ResizeWindow.cpp \
CurrentUrl.cpp \
- RequestedUrl.cpp \
ConsoleMessages.cpp \
main.cpp \
WebPage.cpp \

0 comments on commit e983c63

Please sign in to comment.