From 9f04aa7bb2543f808f460735ca9debee42355fe0 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Mon, 28 Mar 2011 12:52:20 +0000 Subject: [PATCH] Remove an unused variable. --- src/devices/giolister.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/devices/giolister.cpp b/src/devices/giolister.cpp index 4ca8f9104..17e190ece 100644 --- a/src/devices/giolister.cpp +++ b/src/devices/giolister.cpp @@ -243,13 +243,10 @@ void GioLister::MountAdded(GMount* mount) { { QMutexLocker l(&mutex_); - const DeviceInfo* old_info = NULL; - // The volume might already exist - either mounted or unmounted. foreach (const QString& id, devices_.keys()) { if (devices_[id].volume == info.volume) { old_id = id; - old_info = &devices_[id]; break; } } @@ -260,7 +257,6 @@ void GioLister::MountAdded(GMount* mount) { devices_.remove(old_id); emit DeviceRemoved(old_id); - old_info = NULL; old_id = QString(); } devices_[info.unique_id()] = info;