1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

Unused warning cleanups

This commit is contained in:
Jeff Mitchell 2011-04-12 16:52:25 -04:00
parent e2a3c48e6e
commit 5455ee0f21
20 changed files with 52 additions and 3 deletions

View File

@ -68,6 +68,7 @@ void EchoNestPlugin::getInfo(const QString &caller, const InfoType type, const Q
void EchoNestPlugin::getSongProfile(const QString &caller, const QVariant& data, InfoCustomData &customData, const QString &item)
{
//WARNING: Totally not implemented yet
Q_UNUSED( item );
if( !isValidTrackData( caller, data, customData ) )
return;
@ -139,6 +140,7 @@ void EchoNestPlugin::getArtistTerms(const QString &caller, const QVariant& data,
void EchoNestPlugin::getMiscTopTerms(const QString &caller, const QVariant& data, InfoCustomData& customData)
{
Q_UNUSED( data );
QNetworkReply* reply = Echonest::Artist::topTerms( 20 );
m_replyMap[reply] = customData;
m_callerMap[reply] = caller;

View File

@ -36,6 +36,7 @@ DummyTranscode::~DummyTranscode()
void
DummyTranscode::processData( const QByteArray &buffer, bool finish )
{
Q_UNUSED( finish );
m_buffer.append( buffer );
// qDebug() << "DUMMYTRANSCODING:" << buffer.size();
@ -49,6 +50,7 @@ DummyTranscode::processData( const QByteArray &buffer, bool finish )
void
DummyTranscode::onSeek( int seconds )
{
Q_UNUSED( seconds );
m_buffer.clear();
}

View File

@ -39,6 +39,7 @@ FLACTranscode::~FLACTranscode()
void
FLACTranscode::onSeek( int seconds )
{
Q_UNUSED( seconds );
QMutexLocker locker( &m_mutex );
m_buffer.clear();
@ -120,6 +121,7 @@ FLACTranscode::write_callback( const ::FLAC__Frame *frame, const FLAC__int32 *co
::FLAC__StreamDecoderSeekStatus
FLACTranscode::seek_callback(FLAC__uint64 absolute_byte_offset)
{
Q_UNUSED( absolute_byte_offset );
return FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED;
}

View File

@ -39,6 +39,9 @@ vorbis_read( void* data_ptr, size_t byteSize, size_t sizeToRead, void* data_src
int
vorbis_seek( void* data_src, ogg_int64_t offset, int origin )
{
Q_UNUSED( data_src );
Q_UNUSED( offset );
Q_UNUSED( origin );
return -1;
}
@ -46,6 +49,7 @@ vorbis_seek( void* data_src, ogg_int64_t offset, int origin )
int
vorbis_close( void* data_src )
{
Q_UNUSED( data_src );
// done ;-)
return 0;
}
@ -54,6 +58,7 @@ vorbis_close( void* data_src )
long
vorbis_tell( void* data_src )
{
Q_UNUSED( data_src );
return -1;
}
@ -74,6 +79,7 @@ VorbisTranscode::~VorbisTranscode()
void
VorbisTranscode::onSeek( int seconds )
{
Q_UNUSED( seconds );
QMutexLocker locker( &m_mutex );
m_buffer.clear();

View File

@ -38,6 +38,7 @@ BufferIODevice::BufferIODevice( unsigned int size, QObject* parent )
bool
BufferIODevice::open( OpenMode mode )
{
Q_UNUSED( mode );
QMutexLocker lock( &m_mut );
qDebug() << Q_FUNC_INFO;
@ -148,6 +149,8 @@ BufferIODevice::readData( char* data, qint64 maxSize )
qint64
BufferIODevice::writeData( const char* data, qint64 maxSize )
{
Q_UNUSED( data );
Q_UNUSED( maxSize );
// call addData instead
Q_ASSERT( false );
return 0;

View File

@ -75,6 +75,7 @@ CollectionModel::rowCount( const QModelIndex& parent ) const
int
CollectionModel::columnCount( const QModelIndex& parent ) const
{
Q_UNUSED( parent );
return 4;
}

View File

@ -53,6 +53,7 @@ CollectionView::~CollectionView()
void
CollectionView::setModel( QAbstractItemModel* model )
{
Q_UNUSED( model );
qDebug() << "Explicitly use setTrackModel instead";
Q_ASSERT( false );
}

View File

@ -71,6 +71,7 @@ void Tomahawk::GeneratorInterface::removeControl(const Tomahawk::dyncontrol_ptr&
Tomahawk::dyncontrol_ptr
Tomahawk::GeneratorInterface::createControl(const QString& type)
{
Q_UNUSED( type );
Q_ASSERT( false );
return dyncontrol_ptr();
}

View File

@ -104,7 +104,7 @@ DynamicSetupWidget::~DynamicSetupWidget()
void
DynamicSetupWidget::setPlaylist( const Tomahawk::dynplaylist_ptr& playlist )
{
Q_UNUSED( playlist );
}
void

View File

@ -106,6 +106,7 @@ LoadingSpinner::reposition()
void
LoadingSpinner::paintEvent( QPaintEvent* ev )
{
Q_UNUSED( ev );
QPainter p( this );
// qDebug() << "FADING" << ( m_showHide->state() == QTimeLine::Running ) << "at frame:" << m_showHide->currentValue();

View File

@ -544,6 +544,7 @@ QueryLabel::mouseMoveEvent( QMouseEvent* event )
void
QueryLabel::leaveEvent( QEvent* event )
{
Q_UNUSED( event );
m_hoverArea = QRect();
m_hoverType = None;
repaint();

View File

@ -121,6 +121,7 @@ OverlayWidget::shown() const
void
OverlayWidget::paintEvent( QPaintEvent* event )
{
Q_UNUSED( event );
QPoint center( ( m_parent->width() - width() ) / 2, ( m_parent->height() - height() ) / 2 );
move( center );

View File

@ -263,6 +263,7 @@ MusicScanner::listerQuit()
void
MusicScanner::listerDestroyed( QObject* dirLister )
{
Q_UNUSED( dirLister );
qDebug() << Q_FUNC_INFO;
m_dirListerThreadController->deleteLater();
m_dirListerThreadController = 0;

View File

@ -273,6 +273,7 @@ ScanManager::scannerQuit()
void
ScanManager::scannerDestroyed( QObject* scanner )
{
Q_UNUSED( scanner );
qDebug() << Q_FUNC_INFO;
m_musicScannerThreadController->deleteLater();
m_musicScannerThreadController = 0;

View File

@ -479,6 +479,7 @@ Jabber_p::handleLog( gloox::LogLevel level, gloox::LogArea area, const std::stri
void
Jabber_p::onResourceBindError( gloox::ResourceBindError error )
{
Q_UNUSED( error );
qDebug() << Q_FUNC_INFO;
}
@ -486,6 +487,7 @@ Jabber_p::onResourceBindError( gloox::ResourceBindError error )
void
Jabber_p::onSessionCreateError( gloox::SessionCreateError error )
{
Q_UNUSED( error );
qDebug() << Q_FUNC_INFO;
}
@ -731,6 +733,7 @@ Jabber_p::handleNonrosterPresence( const gloox::Presence& presence )
void
Jabber_p::handleVCard( const gloox::JID& jid, const gloox::VCard* vcard )
{
Q_UNUSED( vcard );
qDebug() << "VCARD RECEIVED!" << jid.bare().c_str();
}
@ -738,6 +741,8 @@ Jabber_p::handleVCard( const gloox::JID& jid, const gloox::VCard* vcard )
void
Jabber_p::handleVCardResult( gloox::VCardHandler::VCardContext context, const gloox::JID& jid, gloox::StanzaError se )
{
Q_UNUSED( context );
Q_UNUSED( se );
qDebug() << "VCARD RESULT RECEIVED!" << jid.bare().c_str();
}
@ -746,6 +751,7 @@ Jabber_p::handleVCardResult( gloox::VCardHandler::VCardContext context, const gl
void
Jabber_p::handleDiscoInfo( const gloox::JID& from, const gloox::Disco::Info& info, int context )
{
Q_UNUSED( context );
QString jidstr( from.full().c_str() );
//qDebug() << "DISCOinfo" << jidstr;
if ( info.hasFeature("tomahawk:player") )
@ -762,15 +768,19 @@ Jabber_p::handleDiscoInfo( const gloox::JID& from, const gloox::Disco::Info& inf
void
Jabber_p::handleDiscoItems( const gloox::JID& /*iq*/, const gloox::Disco::Items&, int /*context*/ )
Jabber_p::handleDiscoItems( const gloox::JID& iq, const gloox::Disco::Items& items, int context )
{
Q_UNUSED( iq );
Q_UNUSED( items );
Q_UNUSED( context );
qDebug() << Q_FUNC_INFO;
}
void
Jabber_p::handleDiscoError( const gloox::JID& j, const gloox::Error* e, int /*context*/ )
Jabber_p::handleDiscoError( const gloox::JID& j, const gloox::Error* e, int context )
{
Q_UNUSED( context );
qDebug() << Q_FUNC_INFO << j.full().c_str() << e->text().c_str() << e->type();
}
/// END DISCO STUFF

View File

@ -638,6 +638,8 @@ TwitterPlugin::directMessagePosted( const QTweetDMStatus& message )
void
TwitterPlugin::directMessagePostError( QTweetNetBase::ErrorCode errorCode, const QString &message )
{
Q_UNUSED( errorCode );
Q_UNUSED( message );
qDebug() << Q_FUNC_INFO;
qDebug() << "TwitterPlugin received an error posting direct message: " << m_directMessageNew.data()->lastErrorMessage();
}

View File

@ -64,14 +64,19 @@ public slots:
void sendMsg( const QString& to, const QString& msg )
{
Q_UNUSED( to );
Q_UNUSED( msg );
}
void broadcastMsg( const QString &msg )
{
Q_UNUSED( msg );
}
void addContact( const QString &jid, const QString& msg = QString() )
{
Q_UNUSED( jid );
Q_UNUSED( msg );
}
private slots:

View File

@ -170,6 +170,7 @@ TwitterConfigWidget::deauthenticateTwitter()
void
TwitterConfigWidget::tweetComboBoxIndexChanged( int index )
{
Q_UNUSED( index );
if( ui->twitterTweetComboBox->currentText() == tr( "Global Tweet" ) ) //FIXME: use data!
{
ui->twitterUserTweetLineEdit->setReadOnly( true );

View File

@ -57,14 +57,19 @@ public slots:
void sendMsg( const QString& to, const QString& msg )
{
Q_UNUSED( to );
Q_UNUSED( msg );
}
void broadcastMsg( const QString &msg )
{
Q_UNUSED( msg );
}
void addContact( const QString &jid, const QString& msg = QString() )
{
Q_UNUSED( jid );
Q_UNUSED( msg );
}
private slots:

View File

@ -145,6 +145,7 @@ Api_v1::api( QxtWebRequestEvent* event )
void
Api_v1::sid( QxtWebRequestEvent* event, QString unused )
{
Q_UNUSED( unused );
using namespace Tomahawk;
RID rid = event->url.path().mid( 5 );
qDebug() << "Request for sid " << rid;
@ -206,6 +207,8 @@ Api_v1::stat( QxtWebRequestEvent* event )
void
Api_v1::statResult( const QString& clientToken, const QString& name, bool valid )
{
Q_UNUSED( clientToken )
Q_UNUSED( name )
QVariantMap m;
m.insert( "name", "playdar" );
m.insert( "version", "0.1.1" ); // TODO (needs to be >=0.1.1 for JS to work)