Skip to content

Commit acb3503

Browse files
committed
remove unused getLongestEntryLength
1 parent 0e5281c commit acb3503

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,6 @@ static FloatABI::ABIType fromRust(LLVMRustFloatABI RustFloatAbi) {
224224
report_fatal_error("Bad FloatABI.");
225225
}
226226

227-
/// getLongestEntryLength - Return the length of the longest entry in the table.
228-
template <typename KV> static size_t getLongestEntryLength(ArrayRef<KV> Table) {
229-
size_t MaxLen = 0;
230-
for (auto &I : Table)
231-
MaxLen = std::max(MaxLen, std::strlen(I.Key));
232-
return MaxLen;
233-
}
234-
235227
extern "C" void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef TM,
236228
RustStringRef OutStr) {
237229
ArrayRef<SubtargetSubTypeKV> CPUTable =

0 commit comments

Comments
 (0)