[pitivi] medialibrary: Remove unuseful code



commit 5f5c7560b051fb7bb45560476d44e738264dbd0d
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Jun 27 12:09:32 2016 +0200

    medialibrary: Remove unuseful code
    
    The file extension was called "size" and then it was compared with the
    size of some base file. Getting the size is broken also.
    
    Differential Revision: https://phabricator.freedesktop.org/D1129

 pitivi/medialibrary.py |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 89bde04..0107696 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -656,16 +656,6 @@ class MediaLibraryWidget(Gtk.Box, Loggable):
         if filter_info.uri.endswith(".proxy.mkv"):
             return False
 
-        source_uri, size = os.path.splitext(filter_info.uri.replace(
-            ".proxy.mkv", ""))
-        if os.path.exists(source_uri):
-            sfile = Gio.File.new_for_uri(source_uri)
-            file_size = sfile.query_info(
-                Gio.FILE_ATTRIBUTE_STANDARD_SIZEi,
-                Gio.FileQueryInfoFlags.NONE, None).get_size()
-            if file_size == size:
-                return False
-
         return True
 
     def _showImportSourcesDialog(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]