Skip to content

Commit cbbf562

Browse files
committed
[lldb][Format][NFC] Remove unused FormatEntity::FormatCString
One can use `FormatStringRef` instead anyway
1 parent 88d0b08 commit cbbf562

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

lldb/include/lldb/Core/FormatEntity.h

-5
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,6 @@ bool FormatStringRef(const llvm::StringRef &format, Stream &s,
217217
const Address *addr, ValueObject *valobj,
218218
bool function_changed, bool initial_function);
219219

220-
bool FormatCString(const char *format, Stream &s, const SymbolContext *sc,
221-
const ExecutionContext *exe_ctx, const Address *addr,
222-
ValueObject *valobj, bool function_changed,
223-
bool initial_function);
224-
225220
Status Parse(const llvm::StringRef &format, Entry &entry);
226221

227222
Status ExtractVariableInfo(llvm::StringRef &format_str,

lldb/source/Core/FormatEntity.cpp

-17
Original file line numberDiff line numberDiff line change
@@ -1235,23 +1235,6 @@ bool FormatEntity::FormatStringRef(const llvm::StringRef &format_str, Stream &s,
12351235
return false;
12361236
}
12371237

1238-
bool FormatEntity::FormatCString(const char *format, Stream &s,
1239-
const SymbolContext *sc,
1240-
const ExecutionContext *exe_ctx,
1241-
const Address *addr, ValueObject *valobj,
1242-
bool function_changed, bool initial_function) {
1243-
if (format && format[0]) {
1244-
FormatEntity::Entry root;
1245-
llvm::StringRef format_str(format);
1246-
Status error = FormatEntity::Parse(format_str, root);
1247-
if (error.Success()) {
1248-
return FormatEntity::Format(root, s, sc, exe_ctx, addr, valobj,
1249-
function_changed, initial_function);
1250-
}
1251-
}
1252-
return false;
1253-
}
1254-
12551238
bool FormatEntity::Format(const Entry &entry, Stream &s,
12561239
const SymbolContext *sc,
12571240
const ExecutionContext *exe_ctx, const Address *addr,

0 commit comments

Comments
 (0)