From feff681f4464eb9b538bde613afaf3b03c7c223a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 26 Oct 2009 17:17:01 -0400 Subject: Improved argument parsing logic used by the REPL It now handles quoted strings, although it doesn't understand escape sequences yet. --- src/main.cc | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index c9a922af..9f0e8690 100644 --- a/src/main.cc +++ b/src/main.cc @@ -37,21 +37,6 @@ using namespace ledger; -namespace { - strings_list split_arguments(char * line) - { - strings_list args; - - // jww (2009-02-04): This is too naive - for (char * p = std::strtok(line, " \t"); - p; - p = std::strtok(NULL, " \t")) - args.push_back(p); - - return args; - } -} - #ifdef HAVE_BOOST_PYTHON namespace ledger { extern char * argv0; -- cgit v1.2.3