diff options
author | Robin Gareus <robin@gareus.org> | 2018-07-12 03:28:38 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-07-12 03:28:38 +0200 |
commit | fc4a0a985202328c3041e06d74dc9926c1bfa9c3 (patch) | |
tree | a77d8d1263fa631791fe881e6e2952c52c475acd /gtk2_ardour | |
parent | 0a0dd8de131c7aa28fa5207ca7801a6b1d801906 (diff) |
Move static function out of header-file, fix -Wunused-function
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_http.h | 4 | ||||
-rw-r--r-- | gtk2_ardour/luainstance.cc | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/gtk2_ardour/ardour_http.h b/gtk2_ardour/ardour_http.h index 41bb2a8f79..e209d75d9e 100644 --- a/gtk2_ardour/ardour_http.h +++ b/gtk2_ardour/ardour_http.h @@ -92,10 +92,6 @@ class HttpGet { char* http_get (const char* url, int* status, bool with_error_logging); std::string http_get (const std::string& url, bool with_error_logging); -/* For use from Lua scripts */ - -static char* http_get_unlogged (const char* url, int* status) { return http_get (url, status, false); } -static std::string http_get_unlogged (const std::string& url) { return http_get (url, false); } } // namespace diff --git a/gtk2_ardour/luainstance.cc b/gtk2_ardour/luainstance.cc index 8d1644276d..236a5d88e2 100644 --- a/gtk2_ardour/luainstance.cc +++ b/gtk2_ardour/luainstance.cc @@ -363,6 +363,8 @@ const char *luasignalstr[] = { }; // namespace +static std::string http_get_unlogged (const std::string& url) { return ArdourCurl::http_get (url, false); } + /** special cases for Ardour's Mixer UI */ namespace LuaMixer { @@ -744,7 +746,7 @@ LuaInstance::register_classes (lua_State* L) luabridge::getGlobalNamespace (L) .beginNamespace ("ArdourUI") - .addFunction ("http_get", (std::string (*)(const std::string&))&ArdourCurl::http_get_unlogged) + .addFunction ("http_get", &http_get_unlogged) .addFunction ("processor_selection", &LuaMixer::processor_selection) |