Some little code cleanups
like removing now unused code and so on
This commit is contained in:
parent
61064a924d
commit
778d828db8
5 changed files with 8 additions and 27 deletions
|
|
@ -67,11 +67,6 @@ XMMSHandler::connect_handler (const char *ipcpath, const bool &sync, QWidget *pa
|
|||
|
||||
m_client->playback.broadcastVolumeChanged () (bind (&XMMSHandler::volume_changed, this));
|
||||
|
||||
// TODO: Disabled for now. Seems to cause problems on startup
|
||||
// QObject::connect (&m_playtime_timer, SIGNAL (timeout ()),
|
||||
// this, SLOT (restartPlaytime ()));
|
||||
// m_playtime_timer.start(0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -82,12 +77,6 @@ XMMSHandler::getClient ()
|
|||
return m_client;
|
||||
}
|
||||
|
||||
void
|
||||
XMMSHandler::restartPlaytime ()
|
||||
{
|
||||
m_client->playback.getPlaytime () (Xmms::bind (&XMMSHandler::playback_playtime, this));
|
||||
}
|
||||
|
||||
bool
|
||||
XMMSHandler::medialib_entry_changed (const unsigned int &id)
|
||||
{
|
||||
|
|
@ -119,13 +108,13 @@ XMMSHandler::requestMediainfo (uint id)
|
|||
{
|
||||
m_client->medialib.getInfo (id) (Xmms::bind (&XMMSHandler::medialib_info, this));
|
||||
}
|
||||
|
||||
/*
|
||||
void
|
||||
XMMSHandler::requestPlaylistList ()
|
||||
{
|
||||
// m_client->playlist.listEntries () (Xmms::bind (&XMMSHandler::playlist_list, this));
|
||||
}
|
||||
|
||||
*/
|
||||
void
|
||||
XMMSHandler::requestTrackChange (int pos)
|
||||
{
|
||||
|
|
@ -147,14 +136,6 @@ XMMSHandler::playback_status (const Xmms::Playback::Status &status)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
XMMSHandler::playback_playtime (const unsigned int &time)
|
||||
{
|
||||
emit playtimeChanged (time);
|
||||
m_playtime_timer.start (500);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
XMMSHandler::playback_current_id (const unsigned int &id)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue