[vlmc-devel] MediaLibraryModel: Remove calls to default empty implementations

Hugo Beauzée-Luyssen git at videolan.org
Tue Jul 12 00:26:39 CEST 2016


vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Jul 11 19:57:12 2016 +0200| [0262d855be8a78ff4bc3f1c83b109e9f4bf2aa2b] | committer: Hugo Beauzée-Luyssen

MediaLibraryModel: Remove calls to default empty implementations

> https://code.videolan.org/videolan/vlmc/commit/0262d855be8a78ff4bc3f1c83b109e9f4bf2aa2b
---

 src/Library/MediaLibraryModel.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/Library/MediaLibraryModel.cpp b/src/Library/MediaLibraryModel.cpp
index e9a1d33..7a283be 100644
--- a/src/Library/MediaLibraryModel.cpp
+++ b/src/Library/MediaLibraryModel.cpp
@@ -61,7 +61,6 @@ void MediaLibraryModel::addMedia( medialibrary::MediaPtr media )
     beginInsertRows( QModelIndex(), size, size );
     m_media.push_back( media );
     m_rowCount.fetch_add( 1, std::memory_order_relaxed );
-    insertRow( size );
     endInsertRows();
 }
 
@@ -83,7 +82,6 @@ bool MediaLibraryModel::removeMedia( int64_t mediaId )
     beginRemoveRows(QModelIndex(), idx, idx );
     m_media.erase( it );
     m_rowCount.fetch_sub( 1, std::memory_order_relaxed );
-    removeRow( idx );
     endRemoveRows();
     return true;
 }



More information about the Vlmc-devel mailing list