summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-09-28 22:10:47 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-10-02 23:09:02 +0200
commitd1e65b496c5465a523c2118c11382f58519f7415 (patch)
tree71fa0d9b87e94601893467e9c2cb0dc55f444359
parent978a2c20dde277e8c90d24a535a5271410f8115b (diff)
Remove sample methods
-rw-r--r--SPICEConsoleAPI.cpp20
-rw-r--r--SPICEConsoleAPI.h11
2 files changed, 0 insertions, 31 deletions
diff --git a/SPICEConsoleAPI.cpp b/SPICEConsoleAPI.cpp
index 9529b77..f13dbec 100644
--- a/SPICEConsoleAPI.cpp
+++ b/SPICEConsoleAPI.cpp
@@ -12,21 +12,6 @@
#include "SPICEConsoleAPI.h"
///////////////////////////////////////////////////////////////////////////////
-/// @fn FB::variant SPICEConsoleAPI::echo(const FB::variant& msg)
-///
-/// @brief Echos whatever is passed from Javascript.
-/// Go ahead and change it. See what happens!
-///////////////////////////////////////////////////////////////////////////////
-FB::variant SPICEConsoleAPI::echo(const FB::variant& msg)
-{
- static int n(0);
- fire_echo("So far, you clicked this many times: ", n++);
-
- // return "foobar";
- return msg;
-}
-
-///////////////////////////////////////////////////////////////////////////////
/// @fn SPICEConsolePtr SPICEConsoleAPI::getPlugin()
///
/// @brief Gets a reference to the plugin that was passed in when the object
@@ -75,8 +60,3 @@ void SPICEConsoleAPI::set_SSLChannels(const std::string &aSSLChannels)
}
/* Backward Compatibility: End */
}
-
-void SPICEConsoleAPI::testEvent()
-{
- fire_test();
-}
diff --git a/SPICEConsoleAPI.h b/SPICEConsoleAPI.h
index e184287..eece90a 100644
--- a/SPICEConsoleAPI.h
+++ b/SPICEConsoleAPI.h
@@ -31,8 +31,6 @@ public:
SPICEConsoleAPI(const SPICEConsolePtr& plugin, const FB::BrowserHostPtr& host) :
m_plugin(plugin), m_host(host)
{
- registerMethod("echo", make_method(this, &SPICEConsoleAPI::echo));
- registerMethod("testEvent", make_method(this, &SPICEConsoleAPI::testEvent));
registerProperty("SSLChannels",
make_property(this,
@@ -73,20 +71,11 @@ public:
SPICEConsolePtr getPlugin();
- // Method echo
- FB::variant echo(const FB::variant& msg);
// Properties
std::string get_SSLChannels() const;
void set_SSLChannels(const std::string &aSSLChannels);
- // Event helpers
- FB_JSAPI_EVENT(test, 0, ());
- FB_JSAPI_EVENT(echo, 2, (const FB::variant&, const int));
-
- // Method test-event
- void testEvent();
-
private:
SPICEConsoleWeakPtr m_plugin;
FB::BrowserHostPtr m_host;