From fc28560fd675a93f06d73628b469fbe3c6850282 Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Tue, 25 Apr 2023 16:45:19 -0700 Subject: [PATCH] [lldb][NFCI] Remove unused swig macros These should have been removed in 662548c82683. --- lldb/bindings/macros.swig | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/lldb/bindings/macros.swig b/lldb/bindings/macros.swig index eee504c..cb013da 100644 --- a/lldb/bindings/macros.swig +++ b/lldb/bindings/macros.swig @@ -1,18 +1,3 @@ -%define STRING_EXTENSION_LEVEL(Class, Level) -%extend { - std::string lldb:: ## Class ## ::__repr__(){ - lldb::SBStream stream; - $self->GetDescription (stream, Level); - const char *desc = stream.GetData(); - size_t desc_len = stream.GetSize(); - if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) { - --desc_len; - } - return std::string(desc, desc_len); - } -} -%enddef - %define STRING_EXTENSION_LEVEL_OUTSIDE(Class, Level) %extend lldb:: ## Class ## { std::string __repr__(){ @@ -28,25 +13,6 @@ } %enddef -%define STRING_EXTENSION(Class) -%extend { - std::string lldb:: ## Class ## ::__repr__(){ - lldb::SBStream stream; - $self->GetDescription (stream); - const char *desc = stream.GetData(); - size_t desc_len = stream.GetSize(); - if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) { - --desc_len; - } - return std::string(desc, desc_len); - } -} -%enddef - -// NOTE: -// This is for when you are peforming the extension from outside of the class -// instead of inside of it. If this change works out, it will replace -// STRING_EXTENSION entirely. %define STRING_EXTENSION_OUTSIDE(Class) %extend lldb:: ## Class ## { std::string __repr__(){ -- 2.7.4