Skip to content

Commit 808ab31

Browse files
committed
[lldb][NFCI] Remove unused swig macros
These should have been removed in 662548c. (cherry picked from commit fc28560)
1 parent 44d9eee commit 808ab31

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

lldb/bindings/macros.swig

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
%define STRING_EXTENSION_LEVEL(Class, Level)
2-
%extend {
3-
std::string lldb:: ## Class ## ::__repr__(){
4-
lldb::SBStream stream;
5-
$self->GetDescription (stream, Level);
6-
const char *desc = stream.GetData();
7-
size_t desc_len = stream.GetSize();
8-
if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) {
9-
--desc_len;
10-
}
11-
return std::string(desc, desc_len);
12-
}
13-
}
14-
%enddef
15-
161
%define STRING_EXTENSION_LEVEL_OUTSIDE(Class, Level)
172
%extend lldb:: ## Class ## {
183
std::string __repr__(){
@@ -28,25 +13,6 @@
2813
}
2914
%enddef
3015

31-
%define STRING_EXTENSION(Class)
32-
%extend {
33-
std::string lldb:: ## Class ## ::__repr__(){
34-
lldb::SBStream stream;
35-
$self->GetDescription (stream);
36-
const char *desc = stream.GetData();
37-
size_t desc_len = stream.GetSize();
38-
if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) {
39-
--desc_len;
40-
}
41-
return std::string(desc, desc_len);
42-
}
43-
}
44-
%enddef
45-
46-
// NOTE:
47-
// This is for when you are peforming the extension from outside of the class
48-
// instead of inside of it. If this change works out, it will replace
49-
// STRING_EXTENSION entirely.
5016
%define STRING_EXTENSION_OUTSIDE(Class)
5117
%extend lldb:: ## Class ## {
5218
std::string __repr__(){

0 commit comments

Comments
 (0)