[gnome-games] utils: Remove the unused Directory.try_next_file()



commit b53dc5e5aaa61232ee7818ca8bc066fcab2e7bdd
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Aug 13 15:57:59 2016 +0200

    utils: Remove the unused Directory.try_next_file()
    
    This fixes a compile time warning.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769844

 src/utils/directory.vala |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/utils/directory.vala b/src/utils/directory.vala
index 583fc79..1b15584 100644
--- a/src/utils/directory.vala
+++ b/src/utils/directory.vala
@@ -15,15 +15,4 @@ public class Games.Directory : Object {
                        if (file_info_test (file_info))
                                return;
        }
-
-       private FileInfo? try_next_file (FileEnumerator enumerator) {
-               try {
-                       return enumerator.next_file ();
-               }
-               catch (Error e) {
-                       debug (e.message);
-
-                       return null;
-               }
-       }
 }


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