banshee r3002 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Collection.Database



Author: scottp
Date: Sun Jan 20 07:16:53 2008
New Revision: 3002
URL: http://svn.gnome.org/viewvc/banshee?rev=3002&view=rev

Log:
* src/Core/Banshee.Services/Banshee.Collection.Database/LibraryAlbumInfo.cs,
  src/Core/Banshee.Services/Banshee.Collection.Database/LibraryTrackInfo.cs,
  src/Core/Banshee.Services/Banshee.Collection.Database/LibraryArtistInfo.cs:
  Got rid of DbId setter (not used).

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryAlbumInfo.cs
   trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryArtistInfo.cs
   trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryTrackInfo.cs

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryAlbumInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryAlbumInfo.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryAlbumInfo.cs	Sun Jan 20 07:16:53 2008
@@ -52,9 +52,6 @@
             "SELECT AlbumID, Title FROM CoreAlbums WHERE ArtistID = ? AND Title = ?", 2
         );
 
-        private int dbid;
-        private int artist_id;
-
         private enum Column : int {
             AlbumID,
             Title,
@@ -90,12 +87,13 @@
         }
 
         [DatabaseColumn("AlbumID", Constraints = DatabaseColumnConstraints.PrimaryKey)]
+        private int dbid;
         public int DbId {
             get { return dbid; }
-            internal set { dbid = value; }
         }
 
         [DatabaseColumn("ArtistID")]
+        private int artist_id;
         public int ArtistId {
             get { return artist_id; }
             set { artist_id = value; }

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryArtistInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryArtistInfo.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryArtistInfo.cs	Sun Jan 20 07:16:53 2008
@@ -52,8 +52,6 @@
             "SELECT ArtistID, Name FROM CoreArtists WHERE Name = ?", 1
         );
 
-        private int dbid;
-
         private enum Column : int {
             ArtistID,
             Name
@@ -98,9 +96,9 @@
         }
 
         [DatabaseColumn("ArtistID", Constraints = DatabaseColumnConstraints.PrimaryKey)]
+        private int dbid;
         public int DbId {
             get { return dbid; }
-            internal set { dbid = value; }
         }
 
         [DatabaseColumn]

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryTrackInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryTrackInfo.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/LibraryTrackInfo.cs	Sun Jan 20 07:16:53 2008
@@ -53,8 +53,6 @@
             AbsoluteUri
         }
         
-        private int dbid;
-        
         public LibraryTrackInfo () : base ()
         {
             Attributes |= TrackAttributes.CanPlay;
@@ -66,9 +64,9 @@
         }
         
         [DatabaseColumn("TrackID", Constraints = DatabaseColumnConstraints.PrimaryKey)]
+        private int dbid;
         public int DbId {
             get { return dbid; }
-            internal set { dbid = value; }
         }
 
         [DatabaseColumn("ArtistID", Index = "CoreTracksArtistIndex")]



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