[banshee] Dap: remove unused variable in RemovableSource
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Dap: remove unused variable in RemovableSource
- Date: Thu, 17 Jul 2014 20:32:57 +0000 (UTC)
commit 658719029e775015f4fae96aceca637d871dbddd
Author: Nicholas Little <arealityfarbetween googlemail com>
Date: Thu Jul 17 22:32:23 2014 +0200
Dap: remove unused variable in RemovableSource
The sync variable in RemovableSource was only used in a not operation in
the CanUnmap property. This patch removes the unused variable and marks
the property as virtual for subclasses to override.
src/Dap/Banshee.Dap/Banshee.Dap/RemovableSource.cs | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap/Banshee.Dap/RemovableSource.cs
b/src/Dap/Banshee.Dap/Banshee.Dap/RemovableSource.cs
index 226c0c0..30d394e 100644
--- a/src/Dap/Banshee.Dap/Banshee.Dap/RemovableSource.cs
+++ b/src/Dap/Banshee.Dap/Banshee.Dap/RemovableSource.cs
@@ -130,9 +130,8 @@ namespace Banshee.Dap
return (source is DatabaseSource) && this != source.Parent && !IsReadOnly;
}
- private bool syncing = false;
- public bool CanUnmap {
- get { return !syncing; }
+ public virtual bool CanUnmap {
+ get { return true; }
}
public bool ConfirmBeforeUnmap {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]