Skip to content
Browse files

removed an unused function

  • Loading branch information...
1 parent 82bded6 commit 5540d279f17949ff4a39eb93ac4ffb0fd0fde2d3 @chenyang78 chenyang78 committed Apr 20, 2012
Showing with 0 additions and 15 deletions.
  1. +0 −12 clang_delta/RenameClass.cpp
  2. +0 −3 clang_delta/RenameClass.h
View
12 clang_delta/RenameClass.cpp
@@ -397,18 +397,6 @@ bool RenameClass::getNewNameByName(const std::string &Name,
return RV;
}
-void RenameClass::rewriteClassName(const CXXRecordDecl *CXXRD,
- NestedNameSpecifierLoc Loc)
-{
- std::string Name;
- if (!getNewName(CXXRD, Name))
- return;
-
- Name += "::";
- SourceRange LocRange = Loc.getLocalSourceRange();
- TheRewriter.ReplaceText(LocRange, Name);
-}
-
bool RenameClass::matchCurrentName(const std::string &Name)
{
if (!isValidName(Name))
View
3 clang_delta/RenameClass.h
@@ -98,9 +98,6 @@ friend class RenameClassRewriteVisitor;
const clang::CXXRecordDecl *getBaseDeclFromType(const clang::Type *Ty);
- void rewriteClassName(const clang::CXXRecordDecl *RD,
- clang::NestedNameSpecifierLoc Loc);
-
const clang::CXXRecordDecl *getBaseDeclFromTemplateSpecializationType(
const clang::TemplateSpecializationType *TSTy);

0 comments on commit 5540d27

Please sign in to comment.
Something went wrong with that request. Please try again.