From e96893552b3768fa4144f489fe1d9aa1b6c482ce Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 26 Jul 2020 16:59:37 +0200 Subject: [PATCH] Settings: Remove unused change observer code --- lib/settings.dart | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/settings.dart b/lib/settings.dart index 4f5f5d26..3949f515 100644 --- a/lib/settings.dart +++ b/lib/settings.dart @@ -6,8 +6,6 @@ import 'package:gitjournal/folder_views/common.dart'; import 'package:gitjournal/screens/note_editor.dart'; class Settings { - static List changeObservers = []; - // singleton static final Settings _singleton = Settings._internal(); factory Settings() => _singleton; @@ -180,11 +178,6 @@ class Settings { defaultSet.experimentalBacklinks); pref.setInt("settingsVersion", version); - - // Shouldn't we check if something has actually changed? - for (var f in changeObservers) { - f(); - } } Future _setString(