Author: jwilcox
Date: 2006-06-27 19:20:27 -0400 (Tue, 27 Jun 2006)
New Revision: 62102

Modified:
   trunk/ipod-sharp/ChangeLog
   trunk/ipod-sharp/src/TrackDatabase.cs
Log:
2006-06-27  James Willcox  <[EMAIL PROTECTED]>

        * src/TrackDatabase.cs: remove the length check in TrackRecord when
        saving, as it was really just for debugging.



Modified: trunk/ipod-sharp/ChangeLog
===================================================================
--- trunk/ipod-sharp/ChangeLog  2006-06-27 23:14:02 UTC (rev 62101)
+++ trunk/ipod-sharp/ChangeLog  2006-06-27 23:20:27 UTC (rev 62102)
@@ -1,5 +1,10 @@
 2006-06-27  James Willcox  <[EMAIL PROTECTED]>
 
+       * src/TrackDatabase.cs: remove the length check in TrackRecord when
+       saving, as it was really just for debugging.
+
+2006-06-27  James Willcox  <[EMAIL PROTECTED]>
+
        * src/Track.cs: make the Id property useful (it is persisted across
        database saves) and remove the duplicate TrackRecord property
 

Modified: trunk/ipod-sharp/src/TrackDatabase.cs
===================================================================
--- trunk/ipod-sharp/src/TrackDatabase.cs       2006-06-27 23:14:02 UTC (rev 
62101)
+++ trunk/ipod-sharp/src/TrackDatabase.cs       2006-06-27 23:20:27 UTC (rev 
62102)
@@ -1014,9 +1014,6 @@
                 len = 156;
             }
 
-            writer.Flush ();
-            long startLen = writer.BaseStream.Length;
-            
             WriteName (writer);
             writer.Write (len);
             writer.Write (len + childDataLength);
@@ -1102,11 +1099,6 @@
             }
 
             writer.Flush ();
-            long endLen = writer.BaseStream.Length;
-
-            if (endLen - startLen != 244) {
-                throw new ApplicationException (String.Format ("Wrote {0} 
bytes instead of 244", endLen - startLen));
-            }
             
             writer.Write (childData, 0, childDataLength);
         }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to