aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
authorJesse Smith <jsmith@resonatingmedia.com>2015-05-21 12:16:56 -0300
committerJesse Smith <jsmith@resonatingmedia.com>2015-05-21 12:16:56 -0300
commit15a00c13eb1159b746aa6dd16bf8ecd591f8edf0 (patch)
tree1a31ca3da8c4aff876826c0aa8b46a7103820d5f /lumina-desktop
parentUpdate the included themes to ensure that the new Boot Splash is themed properly (diff)
downloadlumina-15a00c13eb1159b746aa6dd16bf8ecd591f8edf0.tar.gz
lumina-15a00c13eb1159b746aa6dd16bf8ecd591f8edf0.tar.bz2
lumina-15a00c13eb1159b746aa6dd16bf8ecd591f8edf0.zip
Very minor clean-up to avoid compiler warnings.
On a clean compile of the code I found two compiler warnings, both indicating declarations of unused variables. In both cases I think these variables were used for debugging, originally, and are no longer needed. Their declarations have been removed.
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/LSession.cpp3
-rw-r--r--lumina-desktop/panel-plugins/systemtray/LSysTray.cpp4
2 files changed, 1 insertions, 6 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index b204b0a8..a3b301b3 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -534,10 +534,9 @@ void LSession::systemWindow(){
//Play System Audio
void LSession::playAudioFile(QString filepath){
//Setup the audio output systems for the desktop
- bool init = false;
if(DEBUG){ qDebug() << "Play Audio File"; }
//if(audioThread==0){ qDebug() << " - Initialize audio systems"; audioThread = new QThread(); init = true; }
- if(mediaObj==0){ qDebug() << " - Initialize media player"; mediaObj = new QMediaPlayer(); init = true;}
+ if(mediaObj==0){ qDebug() << " - Initialize media player"; mediaObj = new QMediaPlayer(); }
/*if(mediaObj && init){ //in case it errors for some reason
qDebug() << " -- Move audio objects to separate thread";
mediaObj->moveToThread(audioThread);
diff --git a/lumina-desktop/panel-plugins/systemtray/LSysTray.cpp b/lumina-desktop/panel-plugins/systemtray/LSysTray.cpp
index 74705b16..cb4752d6 100644
--- a/lumina-desktop/panel-plugins/systemtray/LSysTray.cpp
+++ b/lumina-desktop/panel-plugins/systemtray/LSysTray.cpp
@@ -94,7 +94,6 @@ void LSysTray::checkAll(){
//Make sure this tray should handle the windows (was not disabled in the backend)
bool TrayRunning = LSession::handle()->registerVisualTray(this->winId());
//qDebug() << "System Tray: Check tray apps";
- bool listChanged = false;
QList<WId> wins = LSession::handle()->currentTrayApps(this->winId());
for(int i=0; i<trayIcons.length(); i++){
int index = wins.indexOf(trayIcons[i]->appID());
@@ -105,7 +104,6 @@ void LSysTray::checkAll(){
LI->removeWidget(cont);
delete cont;
i--; //List size changed
- listChanged = true;
//Re-adjust the maximum widget size to account for what is left
if(this->layout()->direction()==QBoxLayout::LeftToRight){
this->setMaximumSize( trayIcons.length()*this->height(), 10000);
@@ -144,8 +142,6 @@ void LSysTray::checkAll(){
LI->removeWidget(cont);
delete cont;
continue;
- }else{
- listChanged = true;
}
LI->update(); //make sure there is no blank space in the layout
}
bgstack15