]> www.fi.muni.cz Git - evince.git/commitdiff
Clean some redundant code.
authorMichael Meeks <mmeeks@src.gnome.org>
Fri, 3 Sep 1999 08:19:05 +0000 (08:19 +0000)
committerMichael Meeks <mmeeks@src.gnome.org>
Fri, 3 Sep 1999 08:19:05 +0000 (08:19 +0000)
pdf/xpdf/gpdf.cc

index 820dc0362f09d0f1359f208fdfe2babb7749abd0..69c1ab2294951dec91f31e70f11cf0bba324d66d 100644 (file)
@@ -394,33 +394,6 @@ container_launch_component (GnomeClientSite *client_site,
        return object_server;
 }
 
-/*
- * Use query_interface to see if `obj' has `interface'.
- */
-static gboolean
-gnome_object_has_interface (GnomeObject *obj, char *interface)
-{
-       CORBA_Environment ev;
-       CORBA_Object requested_interface;
-
-       CORBA_exception_init (&ev);
-
-       requested_interface = GNOME_Unknown_query_interface (
-               gnome_object_corba_objref (obj), interface, &ev);
-
-       CORBA_exception_free (&ev);
-
-       if (!CORBA_Object_is_nil(requested_interface, &ev) &&
-           ev._major == CORBA_NO_EXCEPTION)
-       {
-               /* Get rid of the interface we've been passed */
-               CORBA_Object_release (requested_interface, &ev);
-               return TRUE;
-       }
-
-       return FALSE;
-}
-
 extern "C" {
   static Component *
   container_activate_component (Container *container, char *component_goad_id)