comparison libinterp/parse-tree/lex.ll @ 16292:6ce905b89cee

delete unused obsolete code * lex.h, lex.ll (stream_reader): Delete unused class declaration. (cleanup_parser): Delete unused function and declaration. (match_any): Delete unused static function. * toplev.cc (do_octave_atexit): Don't call cleanup_parser.
author John W. Eaton <jwe@octave.org>
date Wed, 13 Mar 2013 02:25:50 -0400
parents 09881dab3aaf
children 57e87ddfee14
comparison
equal deleted inserted replaced
16291:c22a6cecaedd 16292:6ce905b89cee
1289 std::cerr << "DEL"; 1289 std::cerr << "DEL";
1290 break; 1290 break;
1291 } 1291 }
1292 } 1292 }
1293 1293
1294 void
1295 cleanup_parser (void)
1296 {
1297 }
1298
1299 // Return 1 if the given character matches any character in the given
1300 // string.
1301
1302 static bool
1303 match_any (char c, const char *s)
1304 {
1305 char tmp;
1306 while ((tmp = *s++) != '\0')
1307 {
1308 if (c == tmp)
1309 return true;
1310 }
1311 return false;
1312 }
1313
1314 bool 1294 bool
1315 is_keyword (const std::string& s) 1295 is_keyword (const std::string& s)
1316 { 1296 {
1317 // Parsing function names like "set.property_name" inside 1297 // Parsing function names like "set.property_name" inside
1318 // classdef-style class definitions is simplified by handling the 1298 // classdef-style class definitions is simplified by handling the