Remove useless declaration. If match_type == eNameMatchIgnore, we already left this function at the beginning of the method. Found by coverity. Fixes CID 1094188

llvm-svn: 191617
This commit is contained in:
Sylvestre Ledru 2013-09-28 15:35:02 +00:00
parent d28b99374f
commit 30eff98e7e
1 changed files with 0 additions and 2 deletions

View File

@ -408,8 +408,6 @@ lldb_private::NameMatches (const char *name,
llvm::StringRef match_sref(match);
switch (match_type)
{
case eNameMatchIgnore:
return true;
case eNameMatchEquals: return name_sref == match_sref;
case eNameMatchContains: return name_sref.find (match_sref) != llvm::StringRef::npos;
case eNameMatchStartsWith: return name_sref.startswith (match_sref);