Skip to content

Commit

Permalink
Merge pull request #6746 from wmtan/RemoveUnusedFunctions
Browse files Browse the repository at this point in the history
Remove unused functions to avoid build warning
  • Loading branch information
davidlt committed Dec 2, 2014
2 parents e5672f8 + 7ec6908 commit fd3eecc
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions FWCore/Utilities/src/TypeDemangler.cc
Expand Up @@ -50,27 +50,6 @@ namespace {
}
}

bool isAlnumOrUnderscore(char c) {
return c == '_' || std::isalnum(c);
}

void
replaceDelimitedString(std::string& demangledName, std::string const& from, std::string const& to) {
// from must not be a substring of to.
std::string::size_type length = from.size();
std::string::size_type pos = 0;
while((pos = demangledName.find(from, pos)) != std::string::npos) {
// replace 'from', unless preceded or followed by a letter, digit, or unsderscore.
if(pos != 0 && isAlnumOrUnderscore(demangledName[pos - 1])) {
++pos;
} else if(pos + length < demangledName.size() && isAlnumOrUnderscore(demangledName[pos + length])) {
++pos;
} else {
demangledName.replace(pos, length, to);
}
}
}

void
constBeforeIdentifier(std::string& demangledName) {
std::string const toBeMoved(" const");
Expand Down

0 comments on commit fd3eecc

Please sign in to comment.