Permalink
Browse files

removed: OpticalMount/Unmount from ApplicationMessenger. I don't know…

… for what and if TMSG_CALLBACK is still in use.
  • Loading branch information...
1 parent 84b0426 commit fe7b8c7a63ff98e3308598347a47b1f87a282aa0 @wsoltys wsoltys committed Jan 23, 2012
Showing with 0 additions and 36 deletions.
  1. +0 −30 xbmc/ApplicationMessenger.cpp
  2. +0 −6 xbmc/ApplicationMessenger.h
@@ -729,21 +729,6 @@ case TMSG_POWERDOWN:
break;
#ifdef HAS_DVD_DRIVE
- case TMSG_OPTICAL_MOUNT:
- {
- CDetectDisc* discdetection = new CDetectDisc(pMsg->strParam, pMsg->dwParam1 != 0);
- CJobManager::GetInstance().AddJob(discdetection, NULL);
- }
- break;
-
- case TMSG_OPTICAL_UNMOUNT:
- {
- CMediaSource share;
- share.strPath = pMsg->strParam;
- share.strName = share.strPath;
- g_mediaManager.RemoveAutoSource(share);
- }
- break;
case TMSG_CALLBACK:
{
ThreadMessageCallback *callback = (ThreadMessageCallback*)pMsg->lpVoid;
@@ -1173,21 +1158,6 @@ vector<bool> CApplicationMessenger::GetInfoBooleans(const vector<CStdString> &pr
return infoLabels;
}
-void CApplicationMessenger::OpticalMount(CStdString device, bool bautorun)
-{
- ThreadMessage tMsg = {TMSG_OPTICAL_MOUNT};
- tMsg.strParam = device;
- tMsg.dwParam1 = (DWORD)bautorun;
- SendMessage(tMsg, false);
-}
-
-void CApplicationMessenger::OpticalUnMount(CStdString device)
-{
- ThreadMessage tMsg = {TMSG_OPTICAL_UNMOUNT};
- tMsg.strParam = device;
- SendMessage(tMsg, false);
-}
-
void CApplicationMessenger::ShowVolumeBar(bool up)
{
ThreadMessage tMsg = {TMSG_VOLUME_SHOW};
@@ -91,9 +91,6 @@ class CGUIWindow;
#define TMSG_GUI_INFOLABEL 608
#define TMSG_GUI_INFOBOOL 609
-#define TMSG_OPTICAL_MOUNT 700
-#define TMSG_OPTICAL_UNMOUNT 701
-
#define TMSG_CALLBACK 800
#define TMSG_VOLUME_SHOW 900
@@ -197,9 +194,6 @@ class CApplicationMessenger
std::vector<CStdString> GetInfoLabels(const std::vector<CStdString> &properties);
std::vector<bool> GetInfoBooleans(const std::vector<CStdString> &properties);
- void OpticalMount(CStdString device, bool bautorun=false);
- void OpticalUnMount(CStdString device);
-
void ShowVolumeBar(bool up);
void SetSplashMessage(const CStdString& message);

0 comments on commit fe7b8c7

Please sign in to comment.