From 1f9826a07ef7e9f86692ed24b00f0ccd05cfd104 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 5 Jan 2016 01:13:47 -0500 Subject: [PATCH] LR0: ::closeState no longer has any return value --- src/LR0.cpp | 4 +--- src/LR0.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/LR0.cpp b/src/LR0.cpp index 9b162430..f7b365b8 100644 --- a/src/LR0.cpp +++ b/src/LR0.cpp @@ -129,7 +129,7 @@ LR0::Closure LR0::getClosure (const std::string& symbol) const } //////////////////////////////////////////////////////////////////////////////// -bool LR0::closeState (States& states, const int state) const +void LR0::closeState (States& states, const int state) const { std::cout << "# LR0::closeState " << state << "\n"; @@ -161,8 +161,6 @@ bool LR0::closeState (States& states, const int state) const states.push_back (closure); closeState (states, states.size () - 1); } - - return false; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/LR0.h b/src/LR0.h index 8e10f60e..a4ad5262 100644 --- a/src/LR0.h +++ b/src/LR0.h @@ -70,7 +70,7 @@ public: private: std::set getExpectedSymbols (const Closure&) const; Closure getClosure (const std::string&) const; - bool closeState (States&, const int) const; + void closeState (States&, const int) const; private: // Copy of the augmented grammar.