X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fignorelistmanager.cpp;h=e2e515cddca61ecce41b5f9e249b283f0b8da06d;hb=8f1b4ca33d65b7d9b0e5be399dbff13c9591fbce;hp=8e2344ad2b1d67bc58ba5dc8ad4b075681eadca4;hpb=ef3a1eebb101c108dea196e21e29cc4f6f00459a;p=quassel.git diff --git a/src/common/ignorelistmanager.cpp b/src/common/ignorelistmanager.cpp index 8e2344ad..e2e515cd 100644 --- a/src/common/ignorelistmanager.cpp +++ b/src/common/ignorelistmanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -160,20 +160,6 @@ IgnoreListManager::StrictnessType IgnoreListManager::_match(const QString &msgCo } -bool IgnoreListManager::scopeMatch(const QString &scopeRule, const QString &string) const -{ - foreach(QString rule, scopeRule.split(";")) { - QRegExp ruleRx = QRegExp(rule.trimmed()); - ruleRx.setCaseSensitivity(Qt::CaseInsensitive); - ruleRx.setPatternSyntax(QRegExp::Wildcard); - if (ruleRx.exactMatch(string)) { - return true; - } - } - return false; -} - - void IgnoreListManager::removeIgnoreListItem(const QString &ignoreRule) { removeAt(indexOf(ignoreRule));