Skip to content

Commit d2ebe63

Browse files
committed
[lldb][Format][NFC] Remove unused FormatEntity::FormatCString
One can use `FormatStringRef` instead anyway (cherry picked from commit cbbf562)
1 parent 7f1e988 commit d2ebe63

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

lldb/include/lldb/Core/FormatEntity.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,6 @@ bool FormatStringRef(const llvm::StringRef &format, Stream &s,
218218
const Address *addr, ValueObject *valobj,
219219
bool function_changed, bool initial_function);
220220

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

228223
Status ExtractVariableInfo(llvm::StringRef &format_str,

lldb/source/Core/FormatEntity.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,23 +1237,6 @@ bool FormatEntity::FormatStringRef(const llvm::StringRef &format_str, Stream &s,
12371237
return false;
12381238
}
12391239

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

0 commit comments

Comments
 (0)