Permalink
Browse files

get rid of unused code in CGUIDialogMuteBug

  • Loading branch information...
1 parent 3b112c1 commit 046b429c2c47feabebd7db2b5caec792f655f36f Jonathan Marshall committed Jun 27, 2011
Showing with 0 additions and 29 deletions.
  1. +0 −4 xbmc/GUIUserMessages.h
  2. +0 −24 xbmc/dialogs/GUIDialogMuteBug.cpp
  3. +0 −1 xbmc/dialogs/GUIDialogMuteBug.h
View
4 xbmc/GUIUserMessages.h
@@ -73,10 +73,6 @@
#define GUI_MSG_SCAN_FINISHED GUI_MSG_USER + 13
-// Mute activated by the user
-#define GUI_MSG_MUTE_ON GUI_MSG_USER + 14
-#define GUI_MSG_MUTE_OFF GUI_MSG_USER + 15
-
// Player has requested the next item for caching purposes (PAPlayer)
#define GUI_MSG_QUEUE_NEXT_ITEM GUI_MSG_USER + 16
View
24 xbmc/dialogs/GUIDialogMuteBug.cpp
@@ -24,8 +24,6 @@
// the MuteBug is a true modeless dialog
-#define MUTEBUG_IMAGE 901
-
CGUIDialogMuteBug::CGUIDialogMuteBug(void)
: CGUIDialog(WINDOW_DIALOG_MUTE_BUG, "DialogMuteBug.xml")
{
@@ -35,25 +33,3 @@ CGUIDialogMuteBug::CGUIDialogMuteBug(void)
CGUIDialogMuteBug::~CGUIDialogMuteBug(void)
{}
-bool CGUIDialogMuteBug::OnMessage(CGUIMessage& message)
-{
- switch ( message.GetMessage() )
- {
- case GUI_MSG_MUTE_OFF:
- {
- Close();
- return true;
- }
- break;
-
- case GUI_MSG_MUTE_ON:
- {
- // this is handled in g_application
- // non-active modeless window can not get messages
- //Show();
- return true;
- }
- break;
- }
- return CGUIDialog::OnMessage(message);
-}
View
1 xbmc/dialogs/GUIDialogMuteBug.h
@@ -28,6 +28,5 @@ class CGUIDialogMuteBug : public CGUIDialog
public:
CGUIDialogMuteBug(void);
virtual ~CGUIDialogMuteBug(void);
- virtual bool OnMessage(CGUIMessage& message);
protected:
};

0 comments on commit 046b429

Please sign in to comment.