[Scummvm-cvs-logs] SF.net SVN: scummvm:[40029] scummvm/trunk/engines/sci/scicore/vocabulary. cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Mon Apr 20 21:27:50 CEST 2009


Revision: 40029
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40029&view=rev
Author:   fingolfin
Date:     2009-04-20 19:27:50 +0000 (Mon, 20 Apr 2009)

Log Message:
-----------
SCI: cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/sci/scicore/vocabulary.cpp

Modified: scummvm/trunk/engines/sci/scicore/vocabulary.cpp
===================================================================
--- scummvm/trunk/engines/sci/scicore/vocabulary.cpp	2009-04-20 19:27:32 UTC (rev 40028)
+++ scummvm/trunk/engines/sci/scicore/vocabulary.cpp	2009-04-20 19:27:50 UTC (rev 40029)
@@ -137,11 +137,6 @@
 		seeker += 3;
 	}
 
-
-// FIXME: Sort the list.
-// Or even switch it to a hashmap?
-//	qsort(words, counter, sizeof(word_t *), _vocab_cmp_words); // Sort entries
-
 	return true;
 }
 
@@ -199,8 +194,7 @@
 }
 
 void vocab_free_branches(parse_tree_branch_t *parser_branches) {
-	if (parser_branches)
-		free(parser_branches);
+	free(parser_branches);
 }
 
 parse_tree_branch_t *vocab_get_branches(ResourceManager * resmgr, int *branches_nr) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list