[gnome-games/wip/exalm/rebrand: 27/124] application: Drop is_running_in_flatpak()




commit 8d8eb78bbced693421fe2ad73d81ae0e342d5e30
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Mar 24 02:25:17 2021 +0500

    application: Drop is_running_in_flatpak()
    
    We needed it for CommandRunner.

 src/ui/application.vala | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index d589c690..ddb11f9e 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -4,8 +4,6 @@ public class Games.Application : Gtk.Application {
        const string HELP_URI = "https://wiki.gnome.org/Apps/Games/Documentation";;
        const string TEST_QUERY = "SELECT nie:url(?f) WHERE { ?f fts:match 'test query to check tracker' }";
 
-       private static bool? is_flatpak;
-
        private Database database;
 
        private PreferencesWindow preferences_window;
@@ -154,17 +152,6 @@ public class Games.Application : Gtk.Application {
                }
        }
 
-       public static bool is_running_in_flatpak () {
-               if (is_flatpak != null)
-                       return is_flatpak;
-
-               var file = File.new_for_path ("/.flatpak-info");
-
-               is_flatpak = file.query_exists ();
-
-               return is_flatpak;
-       }
-
        private void add_game_files () {
                add_game_files_async.begin ();
        }


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