diff options
Diffstat (limited to 'src/lintmanager.cpp')
-rw-r--r-- | src/lintmanager.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lintmanager.cpp b/src/lintmanager.cpp index 69cd21c..01c28e8 100644 --- a/src/lintmanager.cpp +++ b/src/lintmanager.cpp @@ -22,8 +22,6 @@ #include "rulebase.h" -#include "rules/dump.h" - #include <dirent.h> #include <fstream> #include <regex> @@ -48,6 +46,18 @@ void LintManager::addRule(RuleBase *const rule) mRules.push_back(rule); } +void LintManager::deleteRule(RuleBase *const rule) +{ + FOR_EACH (std::vector<RuleBase*>::iterator, it, mRules) + { + if (*it == rule) + { + mRules.erase(it); + return; + } + } +} + void LintManager::enumFiles(std::string path) { path += "/"; |