Skip to content

Commit

Permalink
Remove unused accessibility field
Browse files Browse the repository at this point in the history
  • Loading branch information
ASalavei committed Dec 16, 2024
1 parent 0766075 commit c082c6e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ NS_ASSUME_NONNULL_BEGIN

- (NSString *__nullable)accessibilityValue;

- (__nullable id<UITextInput>)accessibilityTextInputResponder;

- (CGRect)accessibilityFrame;

- (BOOL)isAccessibilityElement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ - (NSString *__nullable)accessibilityLabel {
return [super accessibilityLabel];
}

- (__nullable id<UITextInput>)accessibilityTextInputResponder {
if (@available(iOS 18.1, *)) {
return [super accessibilityTextInputResponder];
} else {
return NULL;
}
}

- (NSString *__nullable)accessibilityValue {
return [super accessibilityValue];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ private sealed interface AccessibilityNode {
val accessibilityIdentifier: String? get() = null
val accessibilityInteropView: InteropWrappingView? get() = null
val accessibilityCustomActions: List<UIAccessibilityCustomAction> get() = emptyList()
val accessibilityTextInputResponder: UITextInputProtocol? get() = null

fun accessibilityActivate(): Boolean = false
fun accessibilityIncrement() {}
Expand Down Expand Up @@ -165,9 +164,6 @@ private sealed interface AccessibilityNode {
override val accessibilityTraits: UIAccessibilityTraits
get() = cachedConfig.accessibilityTraits()

override val accessibilityTextInputResponder: UITextInputProtocol?
get() = null

override val accessibilityValue: String?
get() = cachedConfig.accessibilityValue()

Expand Down Expand Up @@ -455,9 +451,6 @@ private class AccessibilityElement(
node.accessibilityTraits
}

override fun accessibilityTextInputResponder(): UITextInputProtocol? =
node.accessibilityTextInputResponder

override fun accessibilityValue(): String? =
getOrElse(CachedAccessibilityPropertyKeys.accessibilityValue) {
node.accessibilityValue
Expand Down

0 comments on commit c082c6e

Please sign in to comment.