1212#include < string>
1313#include < vector>
1414
15- #include < react/renderer/debug/DebugStringConvertible.h>
16-
1715namespace facebook ::react {
1816
1917enum class AccessibilityTraits : uint32_t {
@@ -93,7 +91,6 @@ struct AccessibilityState {
9391 std::optional<bool > selected{std::nullopt }; // [Windows] - Do not remove; required for Windows ISelectionItemProvider Implementation
9492 bool busy{false };
9593 std::optional<bool > expanded{std::nullopt };
96- enum CheckedState { Unchecked, Checked, Mixed, None } checked{None};
9794 std::optional<bool > readOnly{std::nullopt }; // [Windows] - Do not remove; required for Windows IRangeValueProvider and IValueProvider Implementation
9895 std::optional<bool > multiselectable{std::nullopt }; // [Windows] - Do not remove; required for Windows ISelectionProvider Implementation
9996 std::optional<bool > required{std::nullopt }; // [Windows] - Do not remove; required for Windows ISelectionProvider Implementation
@@ -114,29 +111,6 @@ constexpr bool operator!=(
114111 return !(rhs == lhs);
115112}
116113
117- #if RN_DEBUG_STRING_CONVERTIBLE
118- inline std::string toString (AccessibilityState::CheckedState state) {
119- switch (state) {
120- case AccessibilityState::Unchecked:
121- return " Unchecked" ;
122- case AccessibilityState::Checked:
123- return " Checked" ;
124- case AccessibilityState::Mixed:
125- return " Mixed" ;
126- case AccessibilityState::None:
127- return " None" ;
128- }
129- }
130-
131- inline std::string toString (const AccessibilityState& accessibilityState) {
132- return " {disabled:" + toString (accessibilityState.disabled ) +
133- " ,selected:" + toString (accessibilityState.selected ) +
134- " ,checked:" + toString (accessibilityState.checked ) +
135- " ,busy:" + toString (accessibilityState.busy ) +
136- " ,expanded:" + toString (accessibilityState.expanded ) + " }" ;
137- }
138- #endif
139-
140114struct AccessibilityLabelledBy {
141115 std::vector<std::string> value{};
142116};
@@ -311,4 +285,4 @@ enum class Role {
311285 Treeitem,
312286};
313287
314- } // namespace facebook::react
288+ } // namespace facebook::react
0 commit comments