diff options
author | monsta <[email protected]> | 2016-01-09 19:21:33 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-09 19:21:33 +0300 |
commit | b3722fee9ec8c39294755b658314c6224a2a851d (patch) | |
tree | e3a62aaf83fdf9f4ee52993886694f20fbd59c90 /plugins | |
parent | 01b97b7a03fb1bf2ba6f1f3fa32f7eacb6b97753 (diff) | |
download | mate-settings-daemon-b3722fee9ec8c39294755b658314c6224a2a851d.tar.bz2 mate-settings-daemon-b3722fee9ec8c39294755b658314c6224a2a851d.tar.xz |
smartcard: remove unused variables
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/smartcard/msd-smartcard-manager.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/plugins/smartcard/msd-smartcard-manager.c b/plugins/smartcard/msd-smartcard-manager.c index 8de48c3..3ad64ea 100644 --- a/plugins/smartcard/msd-smartcard-manager.c +++ b/plugins/smartcard/msd-smartcard-manager.c @@ -406,11 +406,8 @@ msd_smartcard_manager_emit_smartcard_inserted (MsdSmartcardManager *manager, static void msd_smartcard_manager_emit_smartcard_removed (MsdSmartcardManager *manager, - MsdSmartcard *card) + MsdSmartcard *card) { - MsdSmartcardManagerState old_state; - - old_state = manager->priv->state; manager->priv->is_unstoppable = TRUE; g_signal_emit (manager, msd_smartcard_manager_signals[SMARTCARD_REMOVED], 0, card); @@ -724,12 +721,9 @@ gboolean msd_smartcard_manager_start (MsdSmartcardManager *manager, GError **error) { - GError *watching_error; int worker_fd; - GPid worker_pid; GIOChannel *io_channel; GSource *source; - GIOFlags channel_flags; GError *nss_error; if (manager->priv->state == MSD_SMARTCARD_MANAGER_STATE_STARTED) { @@ -740,7 +734,6 @@ msd_smartcard_manager_start (MsdSmartcardManager *manager, manager->priv->state = MSD_SMARTCARD_MANAGER_STATE_STARTING; worker_fd = -1; - worker_pid = 0; nss_error = NULL; if (!manager->priv->nss_is_loaded && !load_nss (&nss_error)) { @@ -759,7 +752,6 @@ msd_smartcard_manager_start (MsdSmartcardManager *manager, } if (!msd_smartcard_manager_create_worker (manager, &worker_fd, &manager->priv->worker_thread)) { - g_set_error (error, MSD_SMARTCARD_MANAGER_ERROR, MSD_SMARTCARD_MANAGER_ERROR_WATCHING_FOR_EVENTS, @@ -771,9 +763,6 @@ msd_smartcard_manager_start (MsdSmartcardManager *manager, io_channel = g_io_channel_unix_new (worker_fd); - channel_flags = g_io_channel_get_flags (io_channel); - watching_error = NULL; - source = g_io_create_watch (io_channel, G_IO_IN | G_IO_HUP); g_io_channel_unref (io_channel); io_channel = NULL; @@ -1062,11 +1051,8 @@ error_out: static gboolean msd_smartcard_manager_worker_emit_smartcard_inserted (MsdSmartcardManagerWorker *worker, MsdSmartcard *card, - GError **error) + GError **error) { - GError *write_error; - - write_error = NULL; g_debug ("card '%s' inserted!", msd_smartcard_get_name (card)); if (!write_bytes (worker->write_fd, "I", 1)) { goto error_out; |