From 5fb509060fa7552a25efccad11595898d420d476 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 27 Oct 2014 15:30:02 +0100 Subject: Remove if (!this) check from ConfigTag::readString() --- src/configparser.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/configparser.cpp') diff --git a/src/configparser.cpp b/src/configparser.cpp index 1c406f218..89ad6493a 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -385,17 +385,6 @@ bool ParseStack::ParseFile(const std::string& path, int flags, const std::string bool ConfigTag::readString(const std::string& key, std::string& value, bool allow_lf) { -#ifdef __clang__ -# pragma clang diagnostic push -# pragma clang diagnostic ignored "-Wunknown-pragmas" -# pragma clang diagnostic ignored "-Wundefined-bool-conversion" -#endif - // TODO: this is undefined behaviour but changing the API is too risky for 2.0. - if (!this) - return false; -#ifdef __clang__ -# pragma clang diagnostic pop -#endif for(std::vector::iterator j = items.begin(); j != items.end(); ++j) { if(j->first != key) -- cgit v1.3.1-10-gc9f91