diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-01-30 22:57:10 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-01-30 22:58:50 +0100 |
commit | a6fb7c001a27c36e3af33dcfb65cab57470f32b7 (patch) | |
tree | 7c9abe4a9f88f85cd1a88135aaf298fc8be6df8d /hwpfilter | |
parent | 0b5a3e73c2b31b77f1e04d8a3e44e774705faa80 (diff) |
Remove TEST, DEBUG and dead code.
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpeq.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/hwpfilter/source/hwpeq.cpp b/hwpfilter/source/hwpeq.cpp index 6b663879cb92..594cff42179a 100644 --- a/hwpfilter/source/hwpeq.cpp +++ b/hwpfilter/source/hwpeq.cpp @@ -39,9 +39,6 @@ using namespace std; #include "hwpeq.h" #include <sal/types.h> #include <sal/macros.h> -//#define TEST -//#define DEBUG - /* @Man: hwp LaTeX ٲٱ */ #ifdef WIN32 @@ -537,8 +534,7 @@ static int next_token(MzString &white, MzString &token, istream *strm) } else token << (char) ch; - // cout << "WHITE : " << "|" << white.c_str() << "|" << endl ; - // cout << "TOKEN : " << "|" << token.c_str() << "|" << endl ; + return token.length(); } @@ -580,11 +576,7 @@ static int eq_word(MzString& outs, istream *strm, int status) int ch, result, nargs; char keyword[256]; hwpeq *eq; -#ifdef DEBUG - static int slevel = 0; - slevel++; -#endif next_token(white, token, strm); if (token.length() <= 0) return 0; @@ -641,11 +633,7 @@ static int eq_word(MzString& outs, istream *strm, int status) } } outs << state; -#ifdef DEBUG - //if( slevel == 1 ) - // cout << "LEVEL[" << slevel << "]" << state << "\n"; - slevel--; -#endif + return result; } @@ -749,9 +737,6 @@ void eq2latex(MzString& outs, char *s) istringstream tstrm(s); bool eqnarray = eq_sentence(tstr, &tstrm); -#ifdef TEST - cout << "Step1: " << endl << tstr.c_str() << endl; -#endif istringstream strm(tstr.c_str()); if( eqnarray ) |