Coverity: Overrun static: CID 141
[sxemacs] / src / ui / device.c
index fc40164..04d7a8b 100644 (file)
@@ -534,9 +534,6 @@ have no effect.
           device-independence violations occur in faces.el. */
        int first_x_device = NILP(Vdefault_x_device) && EQ(type, Qx);
 #endif
-#ifdef HAVE_GTK
-       int first_gtk_device = NILP(Vdefault_gtk_device) && EQ(type, Qgtk);
-#endif
 
        GCPRO3(device, console, name);
 
@@ -583,10 +580,6 @@ have no effect.
 #ifdef HAVE_X_WINDOWS
        if (first_x_device)
                init_global_resources(d);
-#endif
-#ifdef HAVE_GTK
-       if (first_gtk_device)
-               init_global_resources(d);
 #endif
        init_device_resources(d);
 
@@ -742,7 +735,7 @@ delete_device_internal(struct device *d, int force,
                /* #### This should probably be a device method but it is time for
                   19.14 to go out the door. */
                /* #### BILL!!! Should this deal with HAVE_MSWINDOWS as well? */
-#if defined (HAVE_X_WINDOWS) || defined (HAVE_GTK)
+#ifdef HAVE_X_WINDOWS
                /* Next delete all frames which have the popup property to avoid
                   deleting a child after its parent. */
                DEVICE_FRAME_LOOP(frmcons, d) {