Rule: isMarker is no longer necessary

This commit is contained in:
Felipe Zimmerle
2019-02-25 11:32:43 -03:00
parent 2b9ec1a0f1
commit 81542a0676
3 changed files with 10 additions and 12 deletions

View File

@@ -101,9 +101,6 @@ class Rule {
return *m_fileName + ":" + std::to_string(m_lineNumber);
}
virtual bool isMarker() { return false; }
private:
std::shared_ptr<std::string> m_fileName;
int m_lineNumber;

View File

@@ -58,12 +58,10 @@ class RuleMarker : public Rule {
};
std::shared_ptr<std::string> getName() {
std::shared_ptr<std::string> getName() const {
return m_name;
}
bool isMarker() override { return true; }
private:
std::shared_ptr<std::string> m_name;
};