changeset 34676:207272df4aef

Cosmetic: Insert some blank lines and remove commented code.
author ib
date Thu, 23 Feb 2012 12:39:29 +0000
parents 45b2c7bbec60
children d3f65dd58eb9
files gui/util/list.c
diffstat 1 files changed, 10 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/list.c	Thu Feb 23 12:25:57 2012 +0000
+++ b/gui/util/list.c	Thu Feb 23 12:39:29 2012 +0000
@@ -76,37 +76,30 @@
             return listMgr(PLAYLIST_ITEM_ADD, pdat);
 
     case PLAYLIST_ITEM_GET_NEXT:
+
         if (plCurrent && plCurrent->next) {
             plCurrent = plCurrent->next;
-// if (!plCurrent && plList)
-// {
-// plItem *next = plList;
-//
-// while (next->next)
-// {
-// if (!next->next) break;
-// next = next->next;
-// }
-//
-// plCurrent = next;
-// }
             return plCurrent;
         }
+
         return NULL;
 
     case PLAYLIST_ITEM_GET_PREV:
+
         if (plCurrent && plCurrent->prev) {
             plCurrent = plCurrent->prev;
-// if ( !plCurrent && plList ) plCurrent=plList;
             return plCurrent;
         }
+
         return NULL;
 
     case PLAYLIST_ITEM_SET_CURR:
+
         plCurrent = pdat;
         return plCurrent;
 
     case PLAYLIST_ITEM_GET_CURR:
+
         return plCurrent;
 
     case PLAYLIST_ITEM_DEL_CURR:
@@ -133,6 +126,7 @@
         return plCurrent;
 
     case PLAYLIST_DELETE:
+
         while (plList) {
             plItem *item = plList->next;
 
@@ -142,6 +136,7 @@
 
             plList = item;
         }
+
         plCurrent = NULL;
         return NULL;
 
@@ -174,6 +169,7 @@
         return NULL;
 
     case URLLIST_DELETE:
+
         while (urlList) {
             urlItem *item = urlList->next;
 
@@ -182,6 +178,7 @@
 
             urlList = item;
         }
+
         return NULL;
     }