Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Commit 08ab486

Browse files
author
Davide Italiano
committed
[SwiftFormatters] Remove a dead helper. NFC.
1 parent c4e6091 commit 08ab486

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

source/Plugins/Language/Swift/SwiftFormatters.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,6 @@ bool lldb_private::formatters::swift::SwiftSharedString_SummaryProvider(
6868
StringPrinter::ReadStringAndDumpToStreamOptions());
6969
}
7070

71-
/// Get an Obj-C object's class name, if one is present.
72-
static Optional<StringRef> getObjC_ClassName(ValueObject &valobj,
73-
Process &process) {
74-
ObjCLanguageRuntime *runtime =
75-
(ObjCLanguageRuntime *)process.GetLanguageRuntime(
76-
lldb::eLanguageTypeObjC);
77-
if (!runtime)
78-
return None;
79-
80-
ObjCLanguageRuntime::ClassDescriptorSP descriptor(
81-
runtime->GetClassDescriptor(valobj));
82-
83-
if (!descriptor.get() || !descriptor->IsValid())
84-
return None;
85-
86-
ConstString class_name_cs = descriptor->GetClassName();
87-
return class_name_cs.GetStringRef();
88-
}
89-
9071
static bool readStringFromAddress(
9172
uint64_t startAddress, uint64_t length, ProcessSP process, Stream &stream,
9273
const TypeSummaryOptions &summary_options,

0 commit comments

Comments
 (0)