Skip to content

Commit 67d513a

Browse files
committed
Removed single char contains()
- had incorrect prototype anyway
1 parent 9a3486a commit 67d513a

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

include/internal/catch_common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ namespace Catch {
8282
bool endsWith( std::string const& s, std::string const& suffix );
8383
bool endsWith( std::string const& s, char suffix );
8484
bool contains( std::string const& s, std::string const& infix );
85-
bool contains( std::string const& s, std::string const& infix );
8685
void toLowerInPlace( std::string& s );
8786
std::string toLower( std::string const& s );
8887
std::string trim( std::string const& str );

include/internal/catch_common.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ namespace Catch {
3030
bool contains( std::string const& s, std::string const& infix ) {
3131
return s.find( infix ) != std::string::npos;
3232
}
33-
bool contains( std::string const& s, char infix ) {
34-
return s.find(infix) != std::string::npos;
35-
}
3633
char toLowerCh(char c) {
3734
return static_cast<char>( std::tolower( c ) );
3835
}

0 commit comments

Comments
 (0)