mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-10 09:35:30 +00:00
Removed unused variable.
This commit is contained in:
parent
cfcba98e8f
commit
4dc334e481
7
peglib.h
7
peglib.h
@ -1480,8 +1480,7 @@ public:
|
|||||||
MatchAction ma,
|
MatchAction ma,
|
||||||
Log log)
|
Log log)
|
||||||
{
|
{
|
||||||
static PEGParser instance;
|
return get_instance().perform_core(s, n, rules, start, ma, log);
|
||||||
return get().perform_core(s, n, rules, start, ma, log);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::shared_ptr<Grammar> parse(
|
static std::shared_ptr<Grammar> parse(
|
||||||
@ -1497,11 +1496,11 @@ public:
|
|||||||
|
|
||||||
// For debuging purpose
|
// For debuging purpose
|
||||||
static Grammar& grammar() {
|
static Grammar& grammar() {
|
||||||
return get().g;
|
return get_instance().g;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static PEGParser& get() {
|
static PEGParser& get_instance() {
|
||||||
static PEGParser instance;
|
static PEGParser instance;
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user