[banshee/typeahead] Remove trailing whitespace



commit 7dc9ed5b760ffbf057a29a46b413f45a48d14811
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Fri Nov 13 19:52:29 2009 -0800

    Remove trailing whitespace

 .../DatabaseFilterListModel.cs                     |   34 ++++++------
 .../DatabaseQueryFilterModel.cs                    |   18 +++---
 .../DatabaseTrackListModel.cs                      |   52 ++++++++++----------
 .../Banshee.Collection.Gui/BaseTrackListView.cs    |   16 +++---
 .../Banshee.Collection.Gui/SearchableListView.cs   |   42 ++++++++--------
 .../Hyena.Gui/Hyena.Widgets/EntryPopup.cs          |   36 +++++++-------
 .../Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs    |   24 +++++-----
 7 files changed, 111 insertions(+), 111 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseFilterListModel.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseFilterListModel.cs
index ee5372c..e25305c 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseFilterListModel.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseFilterListModel.cs
@@ -41,13 +41,13 @@ using Banshee.Collection;
 using Banshee.Database;
 
 namespace Banshee.Collection.Database
-{   
+{
     public abstract class DatabaseFilterListModel<T, U> : FilterListModel<U>, ICacheableDatabaseModel, ISearchable
         where T : U, new () where U : ICacheableItem, new()
     {
         private readonly BansheeModelCache<T> cache;
         private readonly Banshee.Sources.DatabaseSource source;
-        
+
         private long count;
         private string reload_fragment;
 
@@ -56,7 +56,7 @@ namespace Banshee.Collection.Database
             get { return reload_fragment_format; }
             set { reload_fragment_format = value; }
         }
-        
+
         protected readonly U select_all_item;
         private HyenaSqliteConnection connection;
 
@@ -68,16 +68,16 @@ namespace Banshee.Collection.Database
             FilterName = name;
             FilterLabel = label;
             select_all_item = selectAllItem;
-            
+
             this.connection = connection;
             cache = new BansheeModelCache <T> (connection, uuid, this, provider);
             cache.HasSelectAllItem = true;
         }
-        
+
         public override void Clear ()
         {
         }
-        
+
         protected virtual void GenerateReloadFragment ()
         {
             ReloadFragment = String.Format (
@@ -117,16 +117,16 @@ namespace Banshee.Collection.Database
                 }
             }
         }
-        
+
         public virtual bool CachesValues { get { return false; } }
-        
+
         protected abstract string ItemToFilterValue (object o);
 
         // Ick, duplicated from DatabaseTrackListModel
         public override string GetSqlFilter ()
         {
             string filter = null;
-            
+
             // If the only item is the "All" item, then we shouldn't allow any matches, so insert an always-false condition
             if (Count == 1) {
                 return "0=1";
@@ -141,10 +141,10 @@ namespace Banshee.Collection.Database
                     delegate (string new_filter) { filter = new_filter; }
                 );
             }
-            
+
             return filter;
         }
-        
+
         public abstract void UpdateSelectAllItem (long count);
 
         public override void Reload (bool notify)
@@ -161,13 +161,13 @@ namespace Banshee.Collection.Database
 
                 count = cache.Count + 1;
             }
-            
+
             UpdateSelectAllItem (count - 1);
 
             if (notify)
                 OnReloaded ();
         }
-        
+
         public override U this[int index] {
             get {
                 if (index == 0)
@@ -202,7 +202,7 @@ namespace Banshee.Collection.Database
                 }
             }
         }
-        
+
         public IEnumerable<object> GetSelectedObjects ()
         {
             foreach (object o in SelectedItems) {
@@ -225,19 +225,19 @@ namespace Banshee.Collection.Database
             get { return query_fields; }
             protected set { query_fields = value; }
         }
-        
+
         public int IndexOf (QueryNode query, long offset)
         {
             lock (cache) {
                 if (query == null) {
                     return -1;
                 }
-                
+
                 int index = (int) cache.IndexOf (query.ToSql (QueryFields), offset);
                 return index >= 0 ? index + 1 : index;
             }
         }
-        
+
         public abstract string FilterColumn { get; }
 
         public virtual string JoinTable { get { return null; } }
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseQueryFilterModel.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseQueryFilterModel.cs
index 6da6b5f..0798f9f 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseQueryFilterModel.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseQueryFilterModel.cs
@@ -47,7 +47,7 @@ namespace Banshee.Collection.Database
             "itemid", "ItemID",
             Catalog.GetString ("Value"), "CoreCache.ItemID", false
         );
-        
+
         private string select_all_fmt;
 
         public DatabaseQueryFilterModel (Banshee.Sources.DatabaseSource source, DatabaseTrackListModel trackModel, 
@@ -56,7 +56,7 @@ namespace Banshee.Collection.Database
         {
             this.field = field;
             this.select_all_fmt = select_all_fmt;
-            
+
             ReloadFragmentFormat = @"
                 FROM CoreTracks, CoreCache{0}
                     WHERE CoreCache.ModelID = {1} AND CoreCache.ItemID = {2} {3}
@@ -64,9 +64,9 @@ namespace Banshee.Collection.Database
 
             QueryFields = new QueryFieldSet (query_filter_field);
         }
-        
+
         public override bool CachesValues { get { return true; } }
-        
+
         public override string GetSqlFilter ()
         {
             if (Selection.AllSelected)
@@ -96,7 +96,7 @@ namespace Banshee.Collection.Database
                         //sql = field.ToSql (NullQueryValue.IsNullOrEmpty, NullQueryValue.Instance, true);
                         sql = field.ToSql (NullQueryValue.IsNullOrEmpty, NullQueryValue.Instance);
                     }
-                    
+
                     if (sql != null) {
                         if (first) {
                             first = false;
@@ -110,22 +110,22 @@ namespace Banshee.Collection.Database
             sb.Append (")");
             return first ? null : sb.ToString ();
         }
-        
+
         protected override string ItemToFilterValue (object o)
         {
             throw new NotImplementedException ();
         }
-        
+
         public override string FilterColumn {
             get { return String.Empty; }
         }
-        
+
         public override void UpdateSelectAllItem (long count)
         {
             select_all_item.Title = String.Format (select_all_fmt, count);
         }
     }
-    
+
     /*public class DatabaseNumericQueryFilterModel<T> : DatabaseQueryFilterModel<T>
     {
         public DatabaseNumericQueryFilterModel (Banshee.Sources.DatabaseSource source, DatabaseTrackListModel trackModel, 
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackListModel.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackListModel.cs
index 83bda73..9a1efde 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackListModel.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackListModel.cs
@@ -46,7 +46,7 @@ using Banshee.Database;
 using Banshee.PlaybackController;
 
 namespace Banshee.Collection.Database
-{       
+{ 
     public class DatabaseTrackListModel : TrackListModel, IExportableModel, 
         ICacheableDatabaseModel, IFilterable, ISortable, ICareAboutView, ISearchable
     {
@@ -54,17 +54,17 @@ namespace Banshee.Collection.Database
         private IDatabaseTrackModelProvider provider;
         protected IDatabaseTrackModelCache cache;
         private Banshee.Sources.DatabaseSource source;
-        
+
         private long count;
 
         private long filtered_count;
         private TimeSpan filtered_duration;
         private long filtered_filesize, filesize;
-        
+
         private ISortableColumn sort_column;
         private string sort_query;
         private bool forced_sort_query;
-        
+
         private string reload_fragment;
         private string join_table, join_fragment, join_primary_key, join_column, condition, condition_from;
 
@@ -72,14 +72,14 @@ namespace Banshee.Collection.Database
         private string user_query;
 
         private int rows_in_view;
-        
+
         public DatabaseTrackListModel (BansheeDbConnection connection, IDatabaseTrackModelProvider provider, Banshee.Sources.DatabaseSource source)
         {
             this.connection = connection;
             this.provider = provider;
             this.source = source;
         }
-        
+
         protected HyenaSqliteConnection Connection {
             get { return connection; }
         }
@@ -95,7 +95,7 @@ namespace Banshee.Collection.Database
             cache.AggregatesUpdated += HandleCacheAggregatesUpdated;
             GenerateSortQueryPart ();
         }
-        
+
         private bool have_new_user_query = true;
         private void GenerateUserQueryFragment ()
         {
@@ -164,7 +164,7 @@ namespace Banshee.Collection.Database
             filtered_duration = TimeSpan.FromMilliseconds (reader.IsDBNull (1) ? 0 : Convert.ToInt64 (reader[1]));
             filtered_filesize = reader.IsDBNull (2) ? 0 : Convert.ToInt64 (reader[2]);
         }
-        
+
         public override void Clear ()
         {
             cache.Clear ();
@@ -214,7 +214,7 @@ namespace Banshee.Collection.Database
             HyenaSqliteCommand count_command = new HyenaSqliteCommand (String.Format (
                 "SELECT COUNT(*), SUM(CoreTracks.FileSize) {0}", UnfilteredQuery
             ));
-            
+
             using (HyenaDataReader reader = new HyenaDataReader (connection.Query (count_command))) {
                 count = reader.Get<long> (0);
                 filesize = reader.Get<long> (1);
@@ -258,12 +258,12 @@ namespace Banshee.Collection.Database
                     foreach (IFilterListModel model in reload_models) {
                         model.Reload (false);
                     }
-                    
+
                     bool have_filters = false;
                     foreach (IFilterListModel filter in source.CurrentFilters) {
                         have_filters |= !filter.Selection.AllSelected;
                     }
-                    
+
                     // Unless both artist/album selections are "all" (eg unfiltered), reload
                     // the track model again with the artist/album filters now in place.
                     if (have_filters) {
@@ -294,7 +294,7 @@ namespace Banshee.Collection.Database
         {
             StringBuilder qb = new StringBuilder ();
             qb.Append (UnfilteredQuery);
-            
+
             if (with_filters) {
                 foreach (IFilterListModel filter in source.CurrentFilters) {
                     string filter_sql = filter.GetSqlFilter ();
@@ -304,17 +304,17 @@ namespace Banshee.Collection.Database
                     }
                 }
             }
-            
+
             if (query_fragment != null) {
                 qb.Append (" AND ");
                 qb.Append (query_fragment);
             }
-            
+
             if (sort_query != null) {
                 qb.Append (" ORDER BY ");
                 qb.Append (sort_query);
             }
-            
+
             reload_fragment = qb.ToString ();
             cache.Reload ();
         }
@@ -324,18 +324,18 @@ namespace Banshee.Collection.Database
             get { return query_fields; }
             protected set { query_fields = value; }
         }
-        
+
         public int IndexOf (QueryNode query, long offset)
         {
             lock (this) {
                 if (query == null) {
                     return -1;
                 }
-                
+
                 return (int) cache.IndexOf (query.ToSql (QueryFields), offset);
             }
         }
-        
+
         public override int IndexOf (TrackInfo track)
         {
             lock (this) {
@@ -387,11 +387,11 @@ namespace Banshee.Collection.Database
         public long FileSize {
             get { return filtered_filesize; }
         }
-        
+
         public long UnfilteredFileSize {
             get { return filesize; }
         }
-        
+
         public int UnfilteredCount {
             get { return (int) count; }
             set { count = value; }
@@ -406,7 +406,7 @@ namespace Banshee.Collection.Database
                 }
             }
         }
-        
+
         public string ForcedSortQuery {
             get { return forced_sort_query ? sort_query : null; }
             set { 
@@ -444,7 +444,7 @@ namespace Banshee.Collection.Database
         {
             AddCondition (null, part);
         }
-        
+
         public void AddCondition (string tables, string part)
         {
             if (!String.IsNullOrEmpty (part)) {
@@ -455,7 +455,7 @@ namespace Banshee.Collection.Database
                 }
             }
         }
-        
+
         public string Condition {
             get { return condition; }
         }
@@ -498,7 +498,7 @@ namespace Banshee.Collection.Database
         public ISortableColumn SortColumn { 
             get { return sort_column; }
         }
-                
+
         public virtual int RowsInView {
             protected get { return rows_in_view; }
             set { rows_in_view = value; }
@@ -508,7 +508,7 @@ namespace Banshee.Collection.Database
         {
             return Count;
         }
-        
+
         IDictionary<string, object> IExportableModel.GetMetadata (int index)
         {
             return this[index].GenerateExportable ();
@@ -550,7 +550,7 @@ namespace Banshee.Collection.Database
         public string ReloadFragment {
             get { return reload_fragment; }
         }
-        
+
         public bool CachesValues { get { return false; } }
     }
 }
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs
index d9b106d..7068a8a 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs
@@ -51,13 +51,13 @@ namespace Banshee.Collection.Gui
             RulesHint = true;
             RowOpaquePropertyName = "Enabled";
             RowBoldPropertyName = "IsPlaying";
-            
+
             ServiceManager.PlayerEngine.ConnectEvent (
                 OnPlayerEvent, PlayerEvent.StartOfStream | PlayerEvent.StateChange);
-            
+
             ForceDragSourceSet = true;
             IsEverReorderable = true;
-            
+
             RowActivated += delegate (object o, RowActivatedArgs<TrackInfo> args) {
                 ITrackModelSource source = ServiceManager.SourceManager.ActiveSource as ITrackModelSource;
                 if (source != null && source.TrackModel == Model) {
@@ -70,7 +70,7 @@ namespace Banshee.Collection.Gui
         public override bool SelectOnRowFound {
             get { return true; }
         }
-        
+
         private static TargetEntry [] source_targets = new TargetEntry [] {
             ListViewDragDropTarget.ModelSelection,
             Banshee.Gui.DragDrop.DragDropTarget.UriList
@@ -159,7 +159,7 @@ namespace Banshee.Collection.Gui
             base.OnDragSourceSet ();
             Drag.SourceSetIconName (this, "audio-x-generic");
         }
-        
+
         protected override bool OnDragDrop (Gdk.DragContext context, int x, int y, uint time_)
         {
             y = TranslateToListY (y);
@@ -171,17 +171,17 @@ namespace Banshee.Collection.Gui
                     if (row != GetRowAtY (y + RowHeight / 2)) {
                         row += 1;
                     }
-                    
+
                     if (playlist.TrackModel.Selection.Contains (row)) {
                         // can't drop within the selection
                         return false;
                     }
-                    
+
                     playlist.ReorderSelectedTracks (row);
                     return true;
                 }
             }
-            
+
             return false;
         }
 
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/SearchableListView.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/SearchableListView.cs
index 8a68695..8b668b7 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/SearchableListView.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/SearchableListView.cs
@@ -55,7 +55,7 @@ namespace Banshee.Collection.Gui
         public QueryNode LastQuery { 
             get { return last_query; }
         }
-        
+
         public virtual bool SelectOnRowFound {
             get { return false; }
         }
@@ -76,15 +76,15 @@ namespace Banshee.Collection.Gui
 
         private QueryNode BuildQueryTree (QueryFieldSet fields, Operator op, string target)
         {
-            return BuildQueryTree (fields, op, target, false);    
+            return BuildQueryTree (fields, op, target, false);
         }
-        
+
         private QueryNode BuildQueryTree (QueryFieldSet fields, Operator op, string target, bool force)
         {
             if (fields == null || op == null || String.IsNullOrEmpty (target)) {
                 return null;
             }
-            
+
             QueryListNode root = new QueryListNode (Keyword.Or);
 
             foreach (QueryField field in fields) {
@@ -97,7 +97,7 @@ namespace Banshee.Collection.Gui
             if (!force && root.ChildCount == 0) {
                 return BuildQueryTree (fields, op, target, true);
             }
-            
+
             return root.Trim ();
         }
 
@@ -106,18 +106,18 @@ namespace Banshee.Collection.Gui
             if (query == null || String.IsNullOrEmpty (target)) {
                 return;
             }
-            
+
             foreach (QueryTermNode node in query.GetTerms ()) {
                 node.Value = QueryValue.CreateFromStringValue (target, node.Field);
             }
         }
-        
+
         private bool PerformSearch (string target)
         {
             if (String.IsNullOrEmpty (target)) {
                 return false;
             }
-            
+
             ISearchable model = Model as ISearchable;
             if (model == null) {
                 return false;
@@ -129,7 +129,7 @@ namespace Banshee.Collection.Gui
             } else {
                 UpdateQueryTree (last_query, target);
             }
-            
+
             int i = model.IndexOf (last_query, search_offset);
             if (i >= 0) {
                 SelectRow (i);
@@ -142,7 +142,7 @@ namespace Banshee.Collection.Gui
         private void SelectRow (int i)
         {
             CenterOn (i);
-            
+
             Selection.FocusedIndex = i;
             if (SelectOnRowFound) {
                 Selection.Clear (false);
@@ -151,7 +151,7 @@ namespace Banshee.Collection.Gui
 
             InvalidateList ();
         }
-        
+
         private void PositionPopup (EntryPopup popup)
         {
             if (popup == null) {
@@ -163,15 +163,15 @@ namespace Banshee.Collection.Gui
             int widget_height, widget_width;
 
             popup.Realize ();
-            
+
             Gdk.Window widget_window = EventWindow; 
             Gdk.Screen widget_screen = widget_window.Screen;
-            
+
             Gtk.Requisition popup_req;
-            
+
             widget_window.GetOrigin (out widget_x, out widget_y);
             widget_window.GetSize (out widget_width, out widget_height);
-            
+
             popup_req = popup.Requisition;
 
             if (widget_x + widget_width > widget_screen.Width) {
@@ -199,21 +199,21 @@ namespace Banshee.Collection.Gui
                 Char.IsPunctuation (c) ||
                 Char.IsSymbol (c);
         }
-        
+
         protected override bool OnKeyPressEvent (Gdk.EventKey press)
         {
             char input = Convert.ToChar (Gdk.Keyval.ToUnicode (press.KeyValue));
             if (!IsCharValid (input) || Model as ISelectable == null) {
                 return base.OnKeyPressEvent (press);
             }
-            
+
             if (search_popup == null) {
                 search_popup = new EntryPopup ();
                 search_popup.Changed += (o, a) => {
                     search_offset = 0;
                     PerformSearch (search_popup.Text);
                 };
-                
+
                 search_popup.KeyPressed += OnPopupKeyPressed;
             }
 
@@ -236,7 +236,7 @@ namespace Banshee.Collection.Gui
             switch (key) {
                 case Gdk.Key.Up:
                 case Gdk.Key.KP_Up:
-                    search_backward = true;                    
+                    search_backward = true;
                     break;
                 case Gdk.Key.g:
                 case Gdk.Key.G:
@@ -257,7 +257,7 @@ namespace Banshee.Collection.Gui
                     break;
                 case Gdk.Key.Down:
                 case Gdk.Key.KP_Down:
-                    search_forward = true;    
+                    search_forward = true;
                     break;
             }
 
@@ -272,4 +272,4 @@ namespace Banshee.Collection.Gui
             }
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/Libraries/Hyena.Gui/Hyena.Widgets/EntryPopup.cs b/src/Libraries/Hyena.Gui/Hyena.Widgets/EntryPopup.cs
index b0763a5..09c0a04 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Widgets/EntryPopup.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Widgets/EntryPopup.cs
@@ -44,23 +44,23 @@ namespace Hyena.Widgets
         {
             Text = text;
         }
-        
+
         public EntryPopup () : base (Gtk.WindowType.Popup)
         {
             CanFocus = true;
             Resizable = false;
             TypeHint = Gdk.WindowTypeHint.Utility;
             Modal = true;
-            
+
             Frame frame = new Frame ();
             frame.Shadow = ShadowType.EtchedIn;
             Add (frame);
-            
+
             HBox box = new HBox ();
             text_entry = new Entry();
             box.PackStart (text_entry, true, true, 0);
             box.BorderWidth = 3;
-            
+
             frame.Add (box);
             frame.ShowAll ();
 
@@ -78,22 +78,22 @@ namespace Hyena.Widgets
                 if (args.Event.Key == Gdk.Key.Escape || 
                     args.Event.Key == Gdk.Key.Return ||
                     args.Event.Key == Gdk.Key.Tab) {
-                    
+
                     HidePopup ();
                 }
 
                 InitializeDelayedHide ();
             };
 
-            text_entry.KeyPressEvent += (o, a) => OnKeyPressed (a);            
-            
+            text_entry.KeyPressEvent += (o, a) => OnKeyPressed (a);
+
             text_entry.Changed += (o, a) => {
                 if (GdkWindow.IsVisible) {
                     OnChanged (a);
                 }
             };
         }
-        
+
         public new bool HasFocus {
             get { return text_entry.HasFocus; }
             set { text_entry.HasFocus = value; }
@@ -103,7 +103,7 @@ namespace Hyena.Widgets
             get { return text_entry.Text; }
             set { text_entry.Text = value; }
         }
-        
+
         public Entry Entry {
             get { return text_entry; }
         }
@@ -119,7 +119,7 @@ namespace Hyena.Widgets
             get { return timeout; }
             set { timeout = value; }
         }
-        
+
         private bool hide_when_focus_lost = true;
         public bool HideOnFocusOut {
             get { return hide_when_focus_lost; }
@@ -131,7 +131,7 @@ namespace Hyena.Widgets
             get { return reset_when_hiding; }
             set { reset_when_hiding = value; }
         }
-        
+
         public override void Dispose ()
         {
             text_entry.Dispose ();
@@ -142,7 +142,7 @@ namespace Hyena.Widgets
         {
             text_entry.GrabFocus ();
         }
-            
+
         private void ResetDelayedHide ()
         {
             if (timeout_id > 0) {
@@ -150,7 +150,7 @@ namespace Hyena.Widgets
                 timeout_id = 0;
             }
         }
-        
+
         private void InitializeDelayedHide ()
         {
             ResetDelayedHide ();
@@ -159,12 +159,12 @@ namespace Hyena.Widgets
                             return false;
                         });
         }
-        
+
         private void HidePopup ()
         {
             ResetDelayedHide ();
             Hide ();
-            
+
             if (reset_when_hiding) {
                 text_entry.Text = String.Empty;
             }
@@ -196,7 +196,7 @@ namespace Hyena.Widgets
 
             return base.OnFocusOutEvent (evnt);
         }
-        
+
         protected override bool OnExposeEvent (Gdk.EventExpose evnt)
         {
             InitializeDelayedHide ();
@@ -212,7 +212,7 @@ namespace Hyena.Widgets
 
             return base.OnButtonReleaseEvent (evnt);
         }
-        
+
         protected override bool OnButtonPressEvent (Gdk.EventButton evnt)
         {
             if (!text_entry.HasFocus && hide_when_focus_lost) {
@@ -223,4 +223,4 @@ namespace Hyena.Widgets
             return base.OnButtonPressEvent (evnt);
         }
     }
-}
\ No newline at end of file
+}
diff --git a/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs b/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs
index 4589da6..78f3661 100644
--- a/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs
+++ b/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelCache.cs
@@ -70,7 +70,7 @@ namespace Hyena.Data.Sqlite
             this.connection = connection;
             this.model = model;
             this.provider = provider;
-            
+
             CheckCacheTable ();
 
             if (model.SelectAggregates != null) {
@@ -131,7 +131,7 @@ namespace Hyena.Data.Sqlite
                     @"SELECT OrderID, ItemID FROM {0} WHERE {0}.ModelID = {1}",
                     CacheTableName, uid
                 );
-                
+ 
                 reload_sql = String.Format (@"
                     DELETE FROM {0} WHERE ModelID = {1};
                     INSERT INTO {0} (ModelID, ItemID) SELECT DISTINCT {1}, {2} ",
@@ -182,7 +182,7 @@ namespace Hyena.Data.Sqlite
                 delete_selection_command = new HyenaSqliteCommand (String.Format (
                     "DELETE FROM {0} WHERE ModelID = {1}", CacheTableName, selection_uid
                 ));
-                
+
                 save_selection_command = new HyenaSqliteCommand (String.Format (
                     "INSERT INTO {0} (ModelID, ItemID) SELECT {1}, ItemID FROM {0} WHERE ModelID = {2} LIMIT ?, ?",
                     CacheTableName, selection_uid, uid
@@ -217,7 +217,7 @@ namespace Hyena.Data.Sqlite
         protected virtual string CacheModelsTableName {
             get { return "HyenaCacheModels"; }
         }
-        
+
         protected virtual string CacheTableName {
             get { return "HyenaCache"; }
         }
@@ -241,11 +241,11 @@ namespace Hyena.Data.Sqlite
 
             if (!where_fragment.Equals (last_indexof_where_fragment)) {
                 last_indexof_where_fragment = where_fragment;
-                
+
                 if (!where_fragment.Trim ().ToLower ().StartsWith ("and ")) {
                     where_fragment = " AND " + where_fragment;
                 }
-            
+
                 string sql = String.Format ("{0} {1} LIMIT ?, 1", select_str, where_fragment);
                 indexof_command = new HyenaSqliteCommand (sql);
             }
@@ -260,17 +260,17 @@ namespace Hyena.Data.Sqlite
                         return target_id - FirstOrderId;
                     }
                 }
-    
+ 
                 return -1;
             }
         }
-        
+
         public long IndexOf (ICacheableItem item)
         {
             if (item == null || item.CacheModelId != CacheId) {
                 return -1;
             }
-            
+
             return IndexOf (item.CacheEntryId);
         }
 
@@ -346,7 +346,7 @@ namespace Hyena.Data.Sqlite
             {
                 connection.Execute (delete_selection_command);
                 saved_selection = true;
-                
+
                 if (!has_select_all_item && model.Selection.FocusedIndex != -1) {
                     T item = GetValue (model.Selection.FocusedIndex);
                     if (item != null) {
@@ -421,7 +421,7 @@ namespace Hyena.Data.Sqlite
                 }
             }
         }
-        
+
         public void UpdateAggregates ()
         {
             using (IDataReader reader = connection.Query (count_command, uid)) {
@@ -435,7 +435,7 @@ namespace Hyena.Data.Sqlite
                 }
             }
         }
-        
+
         private long FindOrCreateCacheModelId (string id)
         {
             long model_id = connection.Query<long> (String.Format (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]