From 91176001e81435430da098bf1ef519298cfdf58d Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Wed, 26 Aug 2009 18:27:59 +0200 Subject: [PATCH] Bug 507404 dialogWindow is unused in DialogOKClicked and DIALOGID is useless r=karlt --- modules/plugin/default/unix/nullplugin.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/plugin/default/unix/nullplugin.c b/modules/plugin/default/unix/nullplugin.c index 2b7180f1131d..1d0304ae0775 100644 --- a/modules/plugin/default/unix/nullplugin.c +++ b/modules/plugin/default/unix/nullplugin.c @@ -66,8 +66,6 @@ #include "nullplugin.h" #include "prprf.h" -#define DIALOGID "dialog" - /* Global data */ static MimeTypeElement *head = NULL; @@ -86,11 +84,8 @@ static void DialogOKClicked (GtkButton *button, gpointer data) { PluginInstance* This = (PluginInstance*) data; - GtkWidget* dialogWindow = g_object_get_data(GTK_OBJECT(button), DIALOGID); char *url; - g_object_set_data(GTK_OBJECT(button), DIALOGID, NULL); - if (This->pluginsFileUrl != NULL) { /* Get the JavaScript command string */ @@ -301,7 +296,6 @@ makeWidget(PluginInstance *This) okButton= AddWidget(gtk_button_new_with_label (OK_BUTTON), GTK_DIALOG(dialogWindow)->action_area); - g_object_set_data(GTK_OBJECT(okButton), DIALOGID, dialogWindow); GTK_WIDGET_SET_FLAGS (okButton, GTK_CAN_DEFAULT); gtk_widget_grab_default(okButton);