From: Ulya Trofimovich Date: Tue, 18 Aug 2015 21:11:58 +0000 (+0100) Subject: Removed unused function. X-Git-Tag: 0.15~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=075cb7ee1eebcc8ae4f04451a3e350a0280cb1fe;p=re2c Removed unused function. --- diff --git a/re2c/src/parse/scanner.h b/re2c/src/parse/scanner.h index 1caed2f8..35d7e492 100644 --- a/re2c/src/parse/scanner.h +++ b/re2c/src/parse/scanner.h @@ -76,8 +76,7 @@ public: ParseMode echo(); int scan(); void reuse(); - - size_t get_pos() const; + void save_state(ScannerState&) const; void restore_state(const ScannerState&); @@ -115,12 +114,6 @@ inline size_t Scanner::tok_len () const return static_cast (cur - tok); } -inline size_t Scanner::get_pos() const -{ - // lexing and fill procedures must maintain: buffer bottom <= cursor pointer - return static_cast (cur - bot); -} - inline const std::string & Scanner::get_fname () const { return in.file_name;