[Scummvm-cvs-logs] SF.net SVN: scummvm:[52990] scummvm/trunk/engines/sci/parser/vocabulary.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Sun Oct 3 12:49:58 CEST 2010
Revision: 52990
http://scummvm.svn.sourceforge.net/scummvm/?rev=52990&view=rev
Author: wjpalenstijn
Date: 2010-10-03 10:49:58 +0000 (Sun, 03 Oct 2010)
Log Message:
-----------
SCI: Remove unused function
Modified Paths:
--------------
scummvm/trunk/engines/sci/parser/vocabulary.cpp
Modified: scummvm/trunk/engines/sci/parser/vocabulary.cpp
===================================================================
--- scummvm/trunk/engines/sci/parser/vocabulary.cpp 2010-10-03 10:49:42 UTC (rev 52989)
+++ scummvm/trunk/engines/sci/parser/vocabulary.cpp 2010-10-03 10:49:58 UTC (rev 52990)
@@ -502,32 +502,6 @@
con->DebugPrintf("\n");
}
-void _vocab_recursive_ptree_dump_treelike(ParseTreeNode *tree) {
- assert(tree);
-
- if (tree->type == kParseTreeLeafNode)
- printf("%x", tree->value);
- else {
- ParseTreeNode* lbranch = tree->left;
- ParseTreeNode* rbranch = tree->right;
- printf("<");
-
- if (lbranch)
- _vocab_recursive_ptree_dump_treelike(lbranch);
- else
- printf("NULL");
-
- printf(",");
-
- if (rbranch)
- _vocab_recursive_ptree_dump_treelike(rbranch);
- else
- printf("NULL");
-
- printf(">");
- }
-}
-
void _vocab_recursive_ptree_dump(ParseTreeNode *tree, int blanks) {
assert(tree);
@@ -569,14 +543,12 @@
}
void vocab_dump_parse_tree(const char *tree_name, ParseTreeNode *nodes) {
- //_vocab_recursive_ptree_dump_treelike(nodes, 0, 0);
printf("(setq %s \n'(", tree_name);
_vocab_recursive_ptree_dump(nodes, 1);
printf("))\n");
}
void Vocabulary::dumpParseTree() {
- //_vocab_recursive_ptree_dump_treelike(nodes, 0, 0);
printf("(setq parse-tree \n'(");
_vocab_recursive_ptree_dump(_parserNodes, 1);
printf("))\n");
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