diff options
author | Arne Morten Kvarving <spiff@xbmc.org> | 2011-05-15 13:58:06 -0700 |
---|---|---|
committer | Arne Morten Kvarving <spiff@xbmc.org> | 2011-05-15 13:58:06 -0700 |
commit | 826b9ecf67bb5622efe910ea5de33fedd4a09a7c (patch) | |
tree | 741c827270d0f10a8fefe41d4fe27bde59aa546e | |
parent | b317444a92291276cf893fc59e1a6ba283aebc73 (diff) | |
parent | a1a937ec95cb3ef9651e5d81965f9c4d06e56c23 (diff) |
Merge pull request #141 from cptspiff/nocredits
changed: remove old, unused, not likely to return, HAS_CREDITS code
-rw-r--r-- | xbmc/Util.cpp | 3 | ||||
-rw-r--r-- | xbmc/interfaces/Builtins.cpp | 7 | ||||
-rw-r--r-- | xbmc/settings/GUIWindowSettings.cpp | 25 | ||||
-rw-r--r-- | xbmc/settings/GUIWindowSettings.h | 1 |
4 files changed, 0 insertions, 36 deletions
diff --git a/xbmc/Util.cpp b/xbmc/Util.cpp index dff1d9d893..f486aae142 100644 --- a/xbmc/Util.cpp +++ b/xbmc/Util.cpp @@ -55,9 +55,6 @@ #ifdef HAS_UPNP #include "filesystem/UPnPDirectory.h" #endif -#ifdef HAS_CREDITS -#include "Credits.h" -#endif #ifdef HAS_VIDEO_PLAYBACK #include "cores/VideoRenderers/RenderManager.h" #endif diff --git a/xbmc/interfaces/Builtins.cpp b/xbmc/interfaces/Builtins.cpp index 0976813a9a..b5918b6f0f 100644 --- a/xbmc/interfaces/Builtins.cpp +++ b/xbmc/interfaces/Builtins.cpp @@ -112,7 +112,6 @@ const BUILT_IN commands[] = { { "Suspend", false, "Suspends the system" }, { "RestartApp", false, "Restart XBMC" }, { "Minimize", false, "Minimize XBMC" }, - { "Credits", false, "Run XBMCs Credits" }, { "Reset", false, "Reset the xbox (warm reboot)" }, { "Mastermode", false, "Control master mode" }, { "ActivateWindow", true, "Activate the specified window" }, @@ -305,12 +304,6 @@ int CBuiltins::Execute(const CStdString& execString) { CUtil::TakeScreenshot(); } - else if (execute.Equals("credits")) - { -#ifdef HAS_CREDITS - CUtil::RunCredits(); -#endif - } else if (execute.Equals("reset")) //Will reset the xbox, aka soft reset { g_application.getApplicationMessenger().Reset(); diff --git a/xbmc/settings/GUIWindowSettings.cpp b/xbmc/settings/GUIWindowSettings.cpp index 5c9650602c..7073dcd3ec 100644 --- a/xbmc/settings/GUIWindowSettings.cpp +++ b/xbmc/settings/GUIWindowSettings.cpp @@ -23,11 +23,6 @@ #include "GUIWindowSettings.h" #include "guilib/GUIWindowManager.h" #include "guilib/Key.h" -#ifdef HAS_CREDITS -#include "Credits.h" -#endif - -#define CONTROL_CREDITS 12 CGUIWindowSettings::CGUIWindowSettings(void) : CGUIWindow(WINDOW_SETTINGS_MENU, "Settings.xml") @@ -49,23 +44,3 @@ bool CGUIWindowSettings::OnAction(const CAction &action) return CGUIWindow::OnAction(action); } -bool CGUIWindowSettings::OnMessage(CGUIMessage& message) -{ - switch ( message.GetMessage() ) - { - case GUI_MSG_CLICKED: - { - int iControl = message.GetSenderId(); - if (iControl == CONTROL_CREDITS) - { -#ifdef HAS_CREDITS - RunCredits(); -#endif - return true; - } - } - break; - } - - return CGUIWindow::OnMessage(message); -} diff --git a/xbmc/settings/GUIWindowSettings.h b/xbmc/settings/GUIWindowSettings.h index 6cc011e679..a52c3be90f 100644 --- a/xbmc/settings/GUIWindowSettings.h +++ b/xbmc/settings/GUIWindowSettings.h @@ -29,6 +29,5 @@ class CGUIWindowSettings : public: CGUIWindowSettings(void); virtual ~CGUIWindowSettings(void); - virtual bool OnMessage(CGUIMessage& message); virtual bool OnAction(const CAction &action); }; |