diff options
author | Arne Morten Kvarving <cptspiff@gmail.com> | 2015-04-27 18:08:46 +0200 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2015-09-12 07:33:26 +0200 |
commit | 0fe1a34f6b9948c1f9dfc6612b2e9099e893d83d (patch) | |
tree | f371036d22e3c27008edc6003d29053104f82b3e | |
parent | 8150b35974a31cdd388bf8c2f86d4a61dffd273c (diff) |
changed: get rid of old builtin command map
-rw-r--r-- | xbmc/interfaces/builtins/Builtins.cpp | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/xbmc/interfaces/builtins/Builtins.cpp b/xbmc/interfaces/builtins/Builtins.cpp index feac617ee6..93a999b66a 100644 --- a/xbmc/interfaces/builtins/Builtins.cpp +++ b/xbmc/interfaces/builtins/Builtins.cpp @@ -137,19 +137,6 @@ using namespace KODI::MESSAGING; using namespace MEDIA_DETECT; #endif -using KODI::MESSAGING::HELPERS::DialogResponse; - -typedef struct -{ - const char* command; - bool needsParameters; - const char* description; -} BUILT_IN; - -const BUILT_IN commands[] = { - { "Help", false, "This help message" }, -}; - CBuiltins::CBuiltins() { RegisterCommands<CAddonBuiltins>(); @@ -194,14 +181,6 @@ bool CBuiltins::HasCommand(const std::string& execString) if (it->second.parameters == 0 || it->second.parameters <= parameters.size()) return true; } - else - { - for (unsigned int i = 0; i < sizeof(commands)/sizeof(BUILT_IN); i++) - { - if (StringUtils::EqualsNoCase(function, commands[i].command) && (!commands[i].needsParameters || parameters.size())) - return true; - } - } return false; } @@ -250,14 +229,6 @@ void CBuiltins::GetHelp(std::string &help) help += it.second.description; help += "\n"; } - - for (unsigned int i = 0; i < sizeof(commands)/sizeof(BUILT_IN); i++) - { - help += commands[i].command; - help += "\t"; - help += commands[i].description; - help += "\n"; - } } int CBuiltins::Execute(const std::string& execString) @@ -282,13 +253,6 @@ int CBuiltins::Execute(const std::string& execString) execute.c_str(), it->second.parameters, params.size()); return -1; } - } - - if (execute == "startandroidactivity" && !params.empty()) - { - CApplicationMessenger::GetInstance().PostMsg(TMSG_START_ANDROID_ACTIVITY, -1, -1, static_cast<void*>(¶ms)); - } - else + } else return CInputManager::GetInstance().ExecuteBuiltin(execute, params); - return 0; } |