diff --git a/src/resolverconfigdelegate.cpp b/src/resolverconfigdelegate.cpp
index 3c8c7bd41..6c555eca2 100644
--- a/src/resolverconfigdelegate.cpp
+++ b/src/resolverconfigdelegate.cpp
@@ -132,14 +132,11 @@ ResolverConfigDelegate::sizeHint( const QStyleOptionViewItem& option, const QMod
 bool
 ResolverConfigDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index)
 {
-    Q_UNUSED(style);
-
 //     qDebug() << "EDITOR EVENT!" << ( event->type() == QEvent::MouseButtonRelease );
 
     QStyleOptionViewItemV4 viewOpt( option );
     initStyleOption( &viewOpt, index );
     const QWidget* w = viewOpt.widget;
-    QStyle* style = w ? w->style() : QApplication::style();
     int top = viewOpt.rect.top();
 
     if( event->type() == QEvent::MouseButtonRelease || event->type() == QEvent::MouseButtonDblClick ) {
diff --git a/src/sourcetree/items/categoryitems.cpp b/src/sourcetree/items/categoryitems.cpp
index 86158ee66..426e59eac 100644
--- a/src/sourcetree/items/categoryitems.cpp
+++ b/src/sourcetree/items/categoryitems.cpp
@@ -182,4 +182,4 @@ CategoryItem::activate()
     if( m_category == SourcesModel::StationsCategory ) {
         // TODO activate stations page
     }
-}
\ No newline at end of file
+}
diff --git a/src/sourcetree/sourcesmodel.cpp b/src/sourcetree/sourcesmodel.cpp
index f4b7ebd1b..61adc5f0b 100644
--- a/src/sourcetree/sourcesmodel.cpp
+++ b/src/sourcetree/sourcesmodel.cpp
@@ -193,11 +193,9 @@ SourcesModel::flags( const QModelIndex& index ) const
 void
 SourcesModel::appendItem( const Tomahawk::source_ptr& source )
 {
-    Q_UNUSED(item);
-
     beginInsertRows( QModelIndex(), rowCount(), rowCount() );
     // append to end
-    CollectionItem* item = new CollectionItem( this, m_rootItem, source );
+    new CollectionItem( this, m_rootItem, source );
 
     endInsertRows();
 }