devhelp r1145 - in trunk: . src



Author: rhult
Date: Mon Oct  6 16:20:58 2008
New Revision: 1145
URL: http://svn.gnome.org/viewvc/devhelp?rev=1145&view=rev

Log:
2008-10-06  Richard Hult  <richard imendio com>

	* src/dh-link.c (dh_link_compare): Remove unused code to sort by
	book/page.


Modified:
   trunk/ChangeLog
   trunk/src/dh-link.c

Modified: trunk/src/dh-link.c
==============================================================================
--- trunk/src/dh-link.c	(original)
+++ trunk/src/dh-link.c	Mon Oct  6 16:20:58 2008
@@ -137,21 +137,6 @@
         }
 
         return strcmp (la->name, lb->name);
-
-        /* We used to sort on book/page first before, which I can't really
-         * understand why. Keep the old code here for a while. 
-         */
-	book_diff = strcmp (dh_link_get_book_name (la), dh_link_get_book_name (lb));
-	if (book_diff == 0) {
-                page_diff = strcmp (dh_link_get_page_name (la), dh_link_get_page_name (lb));
-		if (page_diff == 0) {
-			return strcmp (la->name, lb->name);
-                }
-
-		return page_diff;
-	}
-
-	return book_diff;
 }
 
 DhLink *



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