Skip to content

Commit 740b363

Browse files
committed
Remove matchglobs
1 parent 2dcceca commit 740b363

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

lib/utils.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@ bool matchglob(const std::string& pattern, const std::string& name, bool caseIns
113113
}
114114
}
115115

116-
bool matchglobs(const std::vector<std::string> &patterns, const std::string &name, bool caseInsensitive) {
117-
return std::any_of(begin(patterns), end(patterns), [&name, caseInsensitive](const std::string &pattern) {
118-
return matchglob(pattern, name, caseInsensitive);
119-
});
120-
}
121-
122116
void strTolower(std::string& str)
123117
{
124118
// This wrapper exists because Sun's CC does not allow a static_cast

lib/utils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ CPPCHECKLIB bool isValidGlobPattern(const std::string& pattern);
204204

205205
CPPCHECKLIB bool matchglob(const std::string& pattern, const std::string& name, bool caseInsensitive = false);
206206

207-
CPPCHECKLIB bool matchglobs(const std::vector<std::string> &patterns, const std::string &name, bool caseInsensitive = false);
208-
209207
CPPCHECKLIB void strTolower(std::string& str);
210208

211209
template<typename T, typename std::enable_if<std::is_signed<T>::value, bool>::type=true>

0 commit comments

Comments
 (0)