mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
ifdefs--: not needed anymore
This commit is contained in:
parent
633ade23fc
commit
3d0421b0a6
@ -132,7 +132,6 @@ DatabaseCollection::stations()
|
||||
void
|
||||
DatabaseCollection::autoPlaylistCreated( const source_ptr& source, const QVariantList& data )
|
||||
{
|
||||
#ifndef ENABLE_HEADLESS
|
||||
dynplaylist_ptr p( new DynamicPlaylist( source, //src
|
||||
data[0].toString(), //current rev
|
||||
data[1].toString(), //title
|
||||
@ -145,14 +144,12 @@ DatabaseCollection::autoPlaylistCreated( const source_ptr& source, const QVarian
|
||||
data[8].toInt(), //lastmod
|
||||
data[9].toString() ) ); //GUID
|
||||
addAutoPlaylist( p );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DatabaseCollection::stationCreated( const source_ptr& source, const QVariantList& data )
|
||||
{
|
||||
#ifndef ENABLE_HEADLESS
|
||||
dynplaylist_ptr p( new DynamicPlaylist( source, //src
|
||||
data[0].toString(), //current rev
|
||||
data[1].toString(), //title
|
||||
@ -165,7 +162,6 @@ DatabaseCollection::stationCreated( const source_ptr& source, const QVariantList
|
||||
data[8].toInt(), //lastmod
|
||||
data[9].toString() ) ); //GUID
|
||||
addStation( p );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -87,7 +87,6 @@ DatabaseCommand_SetDynamicPlaylistRevision::controlsV()
|
||||
void
|
||||
DatabaseCommand_SetDynamicPlaylistRevision::postCommitHook()
|
||||
{
|
||||
#ifndef ENABLE_HEADLESS
|
||||
if ( source().isNull() || source()->collection().isNull() )
|
||||
{
|
||||
tDebug() << "Source has gone offline, not emitting to GUI.";
|
||||
@ -173,7 +172,6 @@ DatabaseCommand_SetDynamicPlaylistRevision::postCommitHook()
|
||||
|
||||
if ( source()->isLocal() )
|
||||
Servent::instance()->triggerDBSync();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user