Remove an unused variable.
This commit is contained in:
parent
31a2b8779d
commit
9f04aa7bb2
@ -243,13 +243,10 @@ void GioLister::MountAdded(GMount* mount) {
|
|||||||
{
|
{
|
||||||
QMutexLocker l(&mutex_);
|
QMutexLocker l(&mutex_);
|
||||||
|
|
||||||
const DeviceInfo* old_info = NULL;
|
|
||||||
|
|
||||||
// The volume might already exist - either mounted or unmounted.
|
// The volume might already exist - either mounted or unmounted.
|
||||||
foreach (const QString& id, devices_.keys()) {
|
foreach (const QString& id, devices_.keys()) {
|
||||||
if (devices_[id].volume == info.volume) {
|
if (devices_[id].volume == info.volume) {
|
||||||
old_id = id;
|
old_id = id;
|
||||||
old_info = &devices_[id];
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -260,7 +257,6 @@ void GioLister::MountAdded(GMount* mount) {
|
|||||||
devices_.remove(old_id);
|
devices_.remove(old_id);
|
||||||
emit DeviceRemoved(old_id);
|
emit DeviceRemoved(old_id);
|
||||||
|
|
||||||
old_info = NULL;
|
|
||||||
old_id = QString();
|
old_id = QString();
|
||||||
}
|
}
|
||||||
devices_[info.unique_id()] = info;
|
devices_[info.unique_id()] = info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user