Remove unused variables
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3802 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -139,7 +139,6 @@ sk_init_auth_widget (GladeXML *xml,
|
|||||||
{
|
{
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
GValue *value = NULL;
|
GValue *value = NULL;
|
||||||
gint sk_direction = -1;
|
|
||||||
GtkListStore *store;
|
GtkListStore *store;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
gint active = -1;
|
gint active = -1;
|
||||||
@@ -350,7 +349,6 @@ update_from_filechooser (GladeXML *xml,
|
|||||||
if (strlen (filename))
|
if (strlen (filename))
|
||||||
g_hash_table_insert (s_vpn_props->data, g_strdup (key), str_to_gvalue (filename));
|
g_hash_table_insert (s_vpn_props->data, g_strdup (key), str_to_gvalue (filename));
|
||||||
|
|
||||||
done:
|
|
||||||
g_free (filename);
|
g_free (filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -457,7 +455,6 @@ static const char *pem_cert_begin = "-----BEGIN CERTIFICATE-----";
|
|||||||
static gboolean
|
static gboolean
|
||||||
tls_default_filter (const GtkFileFilterInfo *filter_info, gpointer data)
|
tls_default_filter (const GtkFileFilterInfo *filter_info, gpointer data)
|
||||||
{
|
{
|
||||||
int fd;
|
|
||||||
char *contents = NULL, *p, *ext;
|
char *contents = NULL, *p, *ext;
|
||||||
gsize bytes_read = 0;
|
gsize bytes_read = 0;
|
||||||
gboolean show = FALSE;
|
gboolean show = FALSE;
|
||||||
@@ -636,7 +633,6 @@ advanced_dialog_new_hash_from_connection (NMConnection *connection,
|
|||||||
{
|
{
|
||||||
GHashTable *hash;
|
GHashTable *hash;
|
||||||
NMSettingVPNProperties *s_vpn_props;
|
NMSettingVPNProperties *s_vpn_props;
|
||||||
GValue *value;
|
|
||||||
|
|
||||||
hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, nm_gvalue_destroy);
|
hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, nm_gvalue_destroy);
|
||||||
|
|
||||||
|
@@ -135,7 +135,6 @@ static gboolean
|
|||||||
check_validity (OpenvpnPluginUiWidget *self, GError **error)
|
check_validity (OpenvpnPluginUiWidget *self, GError **error)
|
||||||
{
|
{
|
||||||
OpenvpnPluginUiWidgetPrivate *priv = OPENVPN_PLUGIN_UI_WIDGET_GET_PRIVATE (self);
|
OpenvpnPluginUiWidgetPrivate *priv = OPENVPN_PLUGIN_UI_WIDGET_GET_PRIVATE (self);
|
||||||
gboolean is_valid = TRUE;
|
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
const char *str;
|
const char *str;
|
||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
@@ -197,7 +196,6 @@ static void
|
|||||||
advanced_dialog_close_cb (GtkWidget *dialog, gpointer user_data)
|
advanced_dialog_close_cb (GtkWidget *dialog, gpointer user_data)
|
||||||
{
|
{
|
||||||
OpenvpnPluginUiWidget *self = OPENVPN_PLUGIN_UI_WIDGET (user_data);
|
OpenvpnPluginUiWidget *self = OPENVPN_PLUGIN_UI_WIDGET (user_data);
|
||||||
OpenvpnPluginUiWidgetPrivate *priv = OPENVPN_PLUGIN_UI_WIDGET_GET_PRIVATE (self);
|
|
||||||
|
|
||||||
gtk_widget_hide (dialog);
|
gtk_widget_hide (dialog);
|
||||||
/* gtk_widget_destroy() will remove the window from the window group */
|
/* gtk_widget_destroy() will remove the window from the window group */
|
||||||
@@ -266,7 +264,6 @@ init_plugin_ui (OpenvpnPluginUiWidget *self, NMConnection *connection, GError **
|
|||||||
OpenvpnPluginUiWidgetPrivate *priv = OPENVPN_PLUGIN_UI_WIDGET_GET_PRIVATE (self);
|
OpenvpnPluginUiWidgetPrivate *priv = OPENVPN_PLUGIN_UI_WIDGET_GET_PRIVATE (self);
|
||||||
NMSettingVPNProperties *s_vpn_props;
|
NMSettingVPNProperties *s_vpn_props;
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
GtkWidget *auth_widget;
|
|
||||||
GtkListStore *store;
|
GtkListStore *store;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
int active = -1;
|
int active = -1;
|
||||||
@@ -417,7 +414,6 @@ hash_copy_advanced (gpointer key, gpointer data, gpointer user_data)
|
|||||||
{
|
{
|
||||||
GHashTable *hash = (GHashTable *) user_data;
|
GHashTable *hash = (GHashTable *) user_data;
|
||||||
GValue *value = (GValue *) data;
|
GValue *value = (GValue *) data;
|
||||||
const char *i;
|
|
||||||
|
|
||||||
if (G_VALUE_HOLDS_STRING (value)) {
|
if (G_VALUE_HOLDS_STRING (value)) {
|
||||||
g_hash_table_insert (hash,
|
g_hash_table_insert (hash,
|
||||||
@@ -447,7 +443,6 @@ update_connection (NMVpnPluginUiWidgetInterface *iface,
|
|||||||
NMSettingVPN *s_vpn;
|
NMSettingVPN *s_vpn;
|
||||||
NMSettingVPNProperties *s_vpn_props;
|
NMSettingVPNProperties *s_vpn_props;
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
GValue *value;
|
|
||||||
char *str;
|
char *str;
|
||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
@@ -660,7 +655,6 @@ static char *
|
|||||||
get_suggested_name (NMVpnPluginUiInterface *iface, NMConnection *connection)
|
get_suggested_name (NMVpnPluginUiInterface *iface, NMConnection *connection)
|
||||||
{
|
{
|
||||||
NMSettingConnection *s_con;
|
NMSettingConnection *s_con;
|
||||||
char *suggested;
|
|
||||||
|
|
||||||
g_return_val_if_fail (connection != NULL, NULL);
|
g_return_val_if_fail (connection != NULL, NULL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user