[banshee/1.5.1-fixes: 17/56] Remove the LastPlayedStamp update from PlayQueue



commit 6ef6c98001d668e5c32e01d27be682c4cfa8a0b8
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Tue Oct 27 12:50:39 2009 -0700

    Remove the LastPlayedStamp update from PlayQueue

 .../Banshee.Collection.Database/Shuffler.cs        |    2 +-
 .../Banshee.PlayQueue/PlayQueueSource.cs           |    8 --------
 2 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
index 6636462..b9bfab6 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
@@ -107,7 +107,7 @@ namespace Banshee.Collection.Database
                     r.Reset ();
                 }
             }
-            
+
             var random = randoms.First (r => r.Mode == mode);
             if (random != null) {
                 if (!random.IsReady) {
diff --git a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
index 3ef237b..931529f 100644
--- a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
+++ b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
@@ -576,14 +576,6 @@ namespace Banshee.PlayQueue
                         source_set_at, populate_mode, false, skip && i == 0, shuffler) as DatabaseTrackInfo;
 
                     if (track != null) {
-                        track.LastPlayed = DateTime.Now;
-                        // track.Save() is quite slow, update LastPlayedStamp directly in the database.
-                        ServiceManager.DbConnection.Execute (@"
-                            UPDATE CoreTracks
-                            SET LastPlayedStamp = ?
-                            WHERE TrackID = ?",
-                            Hyena.DateTimeUtil.ToTimeT (track.LastPlayed), track.TrackId
-                        );
                         EnqueueId (track.TrackId, false, true);
                     }
                 }



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