Skip to content

Commit fb97ad5

Browse files
Michael137aokblast
authored andcommitted
[lldb][ValueObject][NFC] Remove unused SyntheticChildrenFrontEnd member (llvm#164249)
These `IsValid`/`SetValid` APIs are only ever used from 1 data-formatter in the Swift LLDB fork. Since all the APIs on `SyntheticChildrenFrontEnd` are meant to be overriden, there is no good way to enforce calling `IsValid` from the base. And we should just let that 1 data-formatter manage its own `IsValid` state.
1 parent 1992f1e commit fb97ad5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lldb/include/lldb/DataFormatters/TypeSynthetic.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@ class SyntheticChildrenFrontEnd {
2828
protected:
2929
ValueObject &m_backend;
3030

31-
void SetValid(bool valid) { m_valid = valid; }
32-
33-
bool IsValid() { return m_valid; }
34-
3531
public:
36-
SyntheticChildrenFrontEnd(ValueObject &backend)
37-
: m_backend(backend), m_valid(true) {}
32+
SyntheticChildrenFrontEnd(ValueObject &backend) : m_backend(backend) {}
3833

3934
virtual ~SyntheticChildrenFrontEnd() = default;
4035

@@ -100,7 +95,6 @@ class SyntheticChildrenFrontEnd {
10095
CompilerType type);
10196

10297
private:
103-
bool m_valid;
10498
SyntheticChildrenFrontEnd(const SyntheticChildrenFrontEnd &) = delete;
10599
const SyntheticChildrenFrontEnd &
106100
operator=(const SyntheticChildrenFrontEnd &) = delete;

0 commit comments

Comments
 (0)