From d8e4dea3c03631ea1b8302d271023afdb3833854 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 3 Sep 1999 08:19:05 +0000 Subject: [PATCH] Clean some redundant code. --- pdf/xpdf/gpdf.cc | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/pdf/xpdf/gpdf.cc b/pdf/xpdf/gpdf.cc index 820dc036..69c1ab22 100644 --- a/pdf/xpdf/gpdf.cc +++ b/pdf/xpdf/gpdf.cc @@ -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) -- 2.43.5