From ccb157c7a30fadef70241e9dc362d78258a3866e Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 11 Dec 2012 13:22:13 -0800 Subject: [PATCH] Remove tokenizer_test target and codeT --- Makefile.in | 10 +--------- tokenizer.cpp | 41 ----------------------------------------- 2 files changed, 1 insertion(+), 50 deletions(-) diff --git a/Makefile.in b/Makefile.in index cfd4686aa..47f83e9fa 100644 --- a/Makefile.in +++ b/Makefile.in @@ -767,14 +767,6 @@ set_color: set_color.o print_help.o common.o color.o wutil.o $(CXX) set_color.o print_help.o common.o wutil.o color.o $(LDFLAGS_SET_COLOR) -o $@ -# -# Test program for the tokenizer library -# - -tokenizer_test: tokenizer.cpp tokenizer.h wutil.o common.o - $(CXX) $(CXXFLAGS) tokenizer.cpp wutil.o common.o -D TOKENIZER_TEST $(LDFLAGS) -o $@ - - # # Build the fish_indent program. # @@ -869,7 +861,7 @@ clean: rm -f *.o doc.h doc.tmp doc_src/*.doxygen doc_src/*.cpp doc_src/*.o doc_src/commands.hdr rm -f $(GENERATED_INTERN_SCRIPT_FILES) rm -f tests/tmp.err tests/tmp.out tests/tmp.status tests/foo.txt - rm -f $(PROGRAMS) fish_tests tokenizer_test key_reader + rm -f $(PROGRAMS) fish_tests key_reader rm -f command_list.txt toc.txt rm -f doc_src/index.hdr doc_src/commands.hdr rm -f fish-@PACKAGE_VERSION@.tar diff --git a/tokenizer.cpp b/tokenizer.cpp index a727743a9..db56748b4 100644 --- a/tokenizer.cpp +++ b/tokenizer.cpp @@ -747,44 +747,3 @@ bool move_word_state_machine_t::consume_char(wchar_t c) return consumed; } - -#ifdef TOKENIZER_TEST - -/** - This main function is used for compiling the tokenizer_test command, used for testing the tokenizer. -*/ -int main(int argc, char **argv) -{ - tokenizer tok; - int i; - for (i=1; i