gsettingsbackend: remove useless check
authorDan Winship <danw@gnome.org>
Thu, 22 Sep 2011 15:52:53 +0000 (11:52 -0400)
committerDan Winship <danw@gnome.org>
Tue, 4 Oct 2011 17:20:28 +0000 (13:20 -0400)
GMemorySettingsBackend is always present, so there's no need to check
for "no backends available"

https://bugzilla.gnome.org/show_bug.cgi?id=620932

gio/gsettingsbackend.c

index 8b4c5b8..f824b93 100644 (file)
@@ -978,10 +978,6 @@ g_settings_backend_get_default (void)
       if (extension == NULL)
         {
           extensions = g_io_extension_point_get_extensions (point);
-
-          if (extensions == NULL)
-            g_error ("No GSettingsBackend implementations exist.");
-
           extension = extensions->data;
 
           if (strcmp (g_io_extension_get_name (extension), "memory") == 0)