Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit b8fda50

Browse files
author
Enrico Granata
committedOct 16, 2012
Removing the two extra GetXSize(bool) calls since we do not desire to support them long-term
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@166060 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent c2bc794 commit b8fda50

File tree

4 files changed

+2
-34
lines changed

4 files changed

+2
-34
lines changed
 

‎include/lldb/API/SBCommandReturnObject.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ class SBCommandReturnObject
9898
const char *
9999
GetError (bool only_if_no_immediate);
100100

101-
size_t
102-
GetErrorSize (bool only_if_no_immediate);
103-
104-
size_t
105-
GetOutputSize (bool only_if_no_immediate);
106-
107101
protected:
108102
friend class SBCommandInterpreter;
109103
friend class SBOptions;

‎scripts/Python/interface/SBCommandReturnObject.i

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ public:
4747
const char *
4848
GetError (bool if_no_immediate);
4949

50-
size_t
51-
GetErrorSize (bool only_if_no_immediate);
52-
53-
size_t
54-
GetOutputSize (bool only_if_no_immediate);
55-
5650
size_t
5751
PutOutput (FILE *fh);
5852

‎source/API/SBCommandReturnObject.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -305,26 +305,6 @@ SBCommandReturnObject::GetError (bool only_if_no_immediate)
305305
return NULL;
306306
}
307307

308-
size_t
309-
SBCommandReturnObject::GetErrorSize (bool only_if_no_immediate)
310-
{
311-
if (!m_opaque_ap.get())
312-
return NULL;
313-
if (only_if_no_immediate == false || m_opaque_ap->GetImmediateErrorStream().get() == NULL)
314-
return GetErrorSize();
315-
return NULL;
316-
}
317-
318-
size_t
319-
SBCommandReturnObject::GetOutputSize (bool only_if_no_immediate)
320-
{
321-
if (!m_opaque_ap.get())
322-
return NULL;
323-
if (only_if_no_immediate == false || m_opaque_ap->GetImmediateOutputStream().get() == NULL)
324-
return GetOutputSize();
325-
return NULL;
326-
}
327-
328308
size_t
329309
SBCommandReturnObject::Printf(const char* format, ...)
330310
{

‎tools/driver/Driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,12 +1022,12 @@ Driver::HandleIOEvent (const SBEvent &event)
10221022

10231023
const bool only_if_no_immediate = true;
10241024

1025-
const size_t output_size = result.GetOutputSize(only_if_no_immediate);
1025+
const size_t output_size = result.GetOutputSize();
10261026

10271027
if (output_size > 0)
10281028
m_io_channel_ap->OutWrite (result.GetOutput(only_if_no_immediate), output_size, NO_ASYNC);
10291029

1030-
const size_t error_size = result.GetErrorSize(only_if_no_immediate);
1030+
const size_t error_size = result.GetErrorSize();
10311031

10321032
if (error_size > 0)
10331033
m_io_channel_ap->OutWrite (result.GetError(only_if_no_immediate), error_size, NO_ASYNC);

0 commit comments

Comments
 (0)
This repository has been archived.