Author: d0k Date: Wed Jun 15 11:51:04 2016 New Revision: 272803 URL: http://llvm.org/viewvc/llvm-project?rev=272803&view=rev Log: [clang-tidy] Remove dead code. NFC.
Modified: clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.cpp clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.h Modified: clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.cpp?rev=272803&r1=272802&r2=272803&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.cpp (original) +++ clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.cpp Wed Jun 15 11:51:04 2016 @@ -878,20 +878,6 @@ bool VariableNamer::declarationExists(St return DeclFinder.findUsages(SourceStmt); } -std::string VariableNamer::AppendWithStyle(StringRef Str, - StringRef Suffix) const { - std::string Name = Str; - if (!Suffix.empty()) { - if (Style == NS_LowerCase || Style == NS_UpperCase) - Name += "_"; - int SuffixStart = Name.size(); - Name += Suffix; - if (Style == NS_CamelBack) - Name[SuffixStart] = toupper(Name[SuffixStart]); - } - return Name; -} - } // namespace modernize } // namespace tidy } // namespace clang Modified: clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.h?rev=272803&r1=272802&r2=272803&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.h (original) +++ clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertUtils.h Wed Jun 15 11:51:04 2016 @@ -450,9 +450,6 @@ private: // Determine whether or not a declaration that would conflict with Symbol // exists in an outer context or in any statement contained in SourceStmt. bool declarationExists(llvm::StringRef Symbol); - - // Concatenates two identifiers following the current naming style. - std::string AppendWithStyle(StringRef Str, StringRef Suffix) const; }; } // namespace modernize _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits