remove unnecessary check for registries - registry gets rebuilt automagically anyway
authorBenjamin Otte <otte@gnome.org>
Fri, 2 May 2003 21:13:19 +0000 (21:13 +0000)
committerBenjamin Otte <otte@gnome.org>
Fri, 2 May 2003 21:13:19 +0000 (21:13 +0000)
Original commit message from CVS:
remove unnecessary check for registries - registry gets rebuilt automagically anyway

gst/gst.c

index b073852..3346dd1 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -382,19 +382,6 @@ init_pre (void)
     user_reg = g_strjoin ("/", homedir, LOCAL_REGISTRY_FILE, NULL);
     _user_registry = gst_xml_registry_new ("user_registry", user_reg);
 
-    /* this test is a hack; gst-register sets this to false
-     * so this is a test for the current instance being gst-register */
-    if (_gst_registry_auto_load == TRUE) {
-      /* do a sanity check here; either one of the two registries should exist */
-      if (!g_file_test (user_reg, G_FILE_TEST_IS_REGULAR)) {
-        if (!g_file_test (GLOBAL_REGISTRY_FILE, G_FILE_TEST_IS_REGULAR))
-        {
-          g_print ("Couldn't find user registry %s or global registry %s\n",
-                  user_reg, GLOBAL_REGISTRY_FILE);
-          g_error ("Please run gst-register either as root or user");
-        }
-      }
-    }
     g_free (user_reg);
   }
 #endif /* GST_DISABLE_REGISTRY */