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

Commit cc6d266

Browse files
authored
Merge pull request #1770 from dcci/dead-code-me
2 parents fcaa934 + 08ab486 commit cc6d266

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)