Revision: 2279
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2279&view=rev
Author: teuf
Date: 2009-03-21 13:21:20 +0000 (Sat, 21 Mar 2009)
Log Message:
-----------
* src/itdb_itunesdb.c: remove commented out code
Modified Paths:
--------------
libgpod/trunk/ChangeLog
libgpod/trunk/src/itdb_itunesdb.c
Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog 2009-03-17 19:37:10 UTC (rev 2278)
+++ libgpod/trunk/ChangeLog 2009-03-21 13:21:20 UTC (rev 2279)
@@ -1,3 +1,8 @@
+2009-03-21 Christophe Fergeau <[email protected]>
+
+ * src/itdb_itunesdb.c: remove commented out code
+ (g_return_val_if_fail)
+
2009-03-14 Christophe Fergeau <[email protected]>
* src/itdb_device.c: directly read firewire ID from SysInfoExtended
Modified: libgpod/trunk/src/itdb_itunesdb.c
===================================================================
--- libgpod/trunk/src/itdb_itunesdb.c 2009-03-17 19:37:10 UTC (rev 2278)
+++ libgpod/trunk/src/itdb_itunesdb.c 2009-03-21 13:21:20 UTC (rev 2279)
@@ -603,7 +603,6 @@
if (check_seek (cts, seek, 2))
{
-/* g_return_val_if_fail (cts->contents, 0);*/
memcpy (&n, &cts->contents[seek], 2);
n = GUINT16_FROM_LE (n);
}
@@ -618,7 +617,6 @@
if (check_seek (cts, seek, 3))
{
-/* g_return_val_if_fail (cts->contents, 0);*/
n = ((guint32)get8int (cts, seek+0)) +
(((guint32)get8int (cts, seek+1)) >> 8) +
(((guint32)get8int (cts, seek+2)) >> 16);
@@ -634,7 +632,6 @@
if (check_seek (cts, seek, 4))
{
-/* g_return_val_if_fail (cts->contents, 0);*/
memcpy (&n, &cts->contents[seek], 4);
n = GUINT32_FROM_LE (n);
}
@@ -666,7 +663,6 @@
if (check_seek (cts, seek, 8))
{
-/* g_return_val_if_fail (cts->contents, 0);*/
memcpy (&n, &cts->contents[seek], 8);
n = GUINT64_FROM_LE (n);
}
@@ -686,7 +682,6 @@
if (check_seek (cts, seek, 2))
{
-/* g_return_val_if_fail (cts->contents, 0);*/
memcpy (&n, &cts->contents[seek], 2);
n = GUINT16_FROM_BE (n);
}
@@ -701,7 +696,6 @@
if (check_seek (cts, seek, 3))
{
-/* g_return_val_if_fail (cts->contents, 0);*/
n = ((guint32)get8int (cts, seek+2)) +
(((guint32)get8int (cts, seek+1)) >> 8) +
(((guint32)get8int (cts, seek+0)) >> 16);
@@ -717,7 +711,6 @@
if (check_seek (cts, seek, 4))
{
-/* g_return_val_if_fail (cts->contents, 0);*/
memcpy (&n, &cts->contents[seek], 4);
n = GUINT32_FROM_BE (n);
}
@@ -748,7 +741,6 @@
if (check_seek (cts, seek, 8))
{
-/* g_return_val_if_fail (cts->contents, 0);*/
memcpy (&n, &cts->contents[seek], 8);
n = GUINT64_FROM_BE (n);
}
@@ -762,37 +754,31 @@
static inline guint16 get16lint (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->le_reader.get16int (cts, seek);
}
static inline guint32 get24lint (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->le_reader.get24int (cts, seek);
}
#if 0
static inline guint32 get24bint (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->be_reader.get24int (cts, seek);
}
#endif
static inline guint32 get32lint (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->le_reader.get32int (cts, seek);
}
static inline float get32lfloat (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->le_reader.get32float (cts, seek);
}
static inline guint64 get64lint (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->le_reader.get64int (cts, seek);
}
@@ -804,27 +790,23 @@
static inline guint16 get16bint (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->be_reader.get16int (cts, seek);
}
static inline guint32 get32bint (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->be_reader.get32int (cts, seek);
}
#if 0
static inline float get32bfloat (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->be_reader.get32float (cts, seek);
}
#endif
static inline guint64 get64bint (FContents *cts, glong seek)
{
-/* g_return_val_if_fail (cts, 0);*/
return cts->be_reader.get64int (cts, seek);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2