[banshee] Remove a large block of unused, commented-out code
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Remove a large block of unused, commented-out code
- Date: Thu, 4 Nov 2010 23:10:54 +0000 (UTC)
commit 058cf93f0bd25e4b72735a40e8b89bab2c514d8a
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Nov 3 22:20:31 2010 -0500
Remove a large block of unused, commented-out code
.../Banshee.SmartPlaylist/Migrator.cs | 147 --------------------
1 files changed, 0 insertions(+), 147 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.SmartPlaylist/Migrator.cs b/src/Core/Banshee.Services/Banshee.SmartPlaylist/Migrator.cs
index 150aa14..d1374b1 100644
--- a/src/Core/Banshee.Services/Banshee.SmartPlaylist/Migrator.cs
+++ b/src/Core/Banshee.Services/Banshee.SmartPlaylist/Migrator.cs
@@ -328,152 +328,5 @@ namespace Banshee.SmartPlaylist
StartsWith, InPlaylist, NotInPlaylist, InSmartPlaylist, NotInSmartPlaylist
};
}
-
- /*public sealed class QueryFilter
- {
- private string name;
- private QueryOperator op;
-
- public string Name {
- get { return name; }
- }
-
- public QueryOperator Operator {
- get { return op; }
- }
-
- private static Hashtable filters = new Hashtable();
- private static ArrayList filters_array = new ArrayList();
- public static QueryFilter GetByName (string name)
- {
- return filters[name] as QueryFilter;
- }
-
- public static ArrayList Filters {
- get { return filters_array; }
- }
-
- private static QueryFilter NewOperation (string name, QueryOperator op)
- {
- QueryFilter filter = new QueryFilter(name, op);
- filters[name] = filter;
- filters_array.Add (filter);
- return filter;
- }
-
- private QueryFilter (string name, QueryOperator op)
- {
- this.name = name;
- this.op = op;
- }
-
- public static QueryFilter InPlaylist = NewOperation (
- Catalog.GetString ("is"),
- QueryOperator.InPlaylist
- );
-
- public static QueryFilter NotInPlaylist = NewOperation (
- Catalog.GetString ("is not"),
- QueryOperator.NotInPlaylist
- );
-
- public static QueryFilter InSmartPlaylist = NewOperation (
- Catalog.GetString ("is"),
- QueryOperator.InSmartPlaylist
- );
-
- public static QueryFilter NotInSmartPlaylist = NewOperation (
- Catalog.GetString ("is not"),
- QueryOperator.NotInSmartPlaylist
- );
-
- // caution: the equal/not-equal operators for text fields (TextIs and TextNotIs) have to be defined
- // before the ones for non-text fields. Otherwise MatchesCondition will not return the right column names.
- // (because the regular expression for non-string fields machtes also for string fields)
- public static QueryFilter TextIs = NewOperation (
- Catalog.GetString ("is"),
- QueryOperator.EQText
- );
-
- public static QueryFilter TextIsNot = NewOperation (
- Catalog.GetString ("is not"),
- QueryOperator.NotEQText
- );
-
- public static QueryFilter Is = NewOperation (
- Catalog.GetString ("is"),
- QueryOperator.EQ
- );
-
- public static QueryFilter IsNot = NewOperation (
- Catalog.GetString ("is not"),
- QueryOperator.NotEQ
- );
-
- public static QueryFilter IsLessThan = NewOperation (
- Catalog.GetString ("is less than"),
- QueryOperator.LT
- );
-
- public static QueryFilter IsGreaterThan = NewOperation (
- Catalog.GetString ("is greater than"),
- QueryOperator.GT
- );
-
- public static QueryFilter MoreThan = NewOperation (
- Catalog.GetString ("more than"),
- QueryOperator.GT
- );
-
- public static QueryFilter LessThan = NewOperation (
- Catalog.GetString ("less than"),
- QueryOperator.LT
- );
-
- public static QueryFilter IsAtLeast = NewOperation (
- Catalog.GetString ("is at least"),
- QueryOperator.GTE
- );
-
- public static QueryFilter Contains = NewOperation (
- Catalog.GetString ("contains"),
- QueryOperator.Like
- );
-
- public static QueryFilter DoesNotContain = NewOperation (
- Catalog.GetString ("does not contain"),
- QueryOperator.NotLike
- );
-
- public static QueryFilter StartsWith = NewOperation (
- Catalog.GetString ("starts with"),
- QueryOperator.StartsWith
- );
-
- public static QueryFilter EndsWith = NewOperation (
- Catalog.GetString ("ends with"),
- QueryOperator.EndsWith
- );
-
- public static QueryFilter IsBefore = NewOperation (
- Catalog.GetString ("is before"),
- QueryOperator.LT
- );
-
- public static QueryFilter IsAfter = NewOperation (
- Catalog.GetString ("is after"),
- QueryOperator.GT
- );
-
- public static QueryFilter IsInTheRange = NewOperation (
- Catalog.GetString ("is between"),
- QueryOperator.Between
- );
-
- public static QueryFilter Between = NewOperation (
- Catalog.GetString ("between"),
- QueryOperator.Between
- );
- }*/
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]