From 075cb7ee1eebcc8ae4f04451a3e350a0280cb1fe Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Tue, 18 Aug 2015 22:11:58 +0100 Subject: [PATCH] Removed unused function. --- re2c/src/parse/scanner.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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; -- 2.40.0