From 4dc334e48195d13d235971834df0f4ea83de5ffd Mon Sep 17 00:00:00 2001 From: yhirose Date: Fri, 12 Jun 2015 21:14:10 -0400 Subject: [PATCH] Removed unused variable. --- peglib.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/peglib.h b/peglib.h index 84e9749..02a9765 100644 --- a/peglib.h +++ b/peglib.h @@ -1480,8 +1480,7 @@ public: MatchAction ma, Log log) { - static PEGParser instance; - return get().perform_core(s, n, rules, start, ma, log); + return get_instance().perform_core(s, n, rules, start, ma, log); } static std::shared_ptr parse( @@ -1497,11 +1496,11 @@ public: // For debuging purpose static Grammar& grammar() { - return get().g; + return get_instance().g; } private: - static PEGParser& get() { + static PEGParser& get_instance() { static PEGParser instance; return instance; }