Simplify code. No functionality change.

llvm-svn: 189168
This commit is contained in:
Benjamin Kramer 2013-08-24 12:15:54 +00:00
parent 892daba8d3
commit 260de74e48
1 changed files with 1 additions and 6 deletions

View File

@ -313,12 +313,7 @@ static bool isObjCClass(StringRef Name) {
static bool hasObjCCategory(StringRef Name) {
if (!isObjCClass(Name)) return false;
size_t pos = Name.find(')');
if (pos != std::string::npos) {
if (Name[pos+1] != ' ') return false;
return true;
}
return false;
return Name.find(") ") != StringRef::npos;
}
static void getObjCClassCategory(StringRef In, StringRef &Class,