Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 4d8f07b

Browse files
authored
Remove deprecated calls to updateSemantics in PlatformDispatcher (#36673)
1 parent f870117 commit 4d8f07b

File tree

3 files changed

+0
-44
lines changed

3 files changed

+0
-44
lines changed

lib/ui/platform_dispatcher.dart

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -750,27 +750,6 @@ class PlatformDispatcher {
750750
_invoke(onAccessibilityFeaturesChanged, _onAccessibilityFeaturesChangedZone,);
751751
}
752752

753-
/// Change the retained semantics data about this platform dispatcher.
754-
///
755-
/// If [semanticsEnabled] is true, the user has requested that this function
756-
/// be called whenever the semantic content of this platform dispatcher
757-
/// changes.
758-
///
759-
/// In either case, this function disposes the given update, which means the
760-
/// semantics update cannot be used further.
761-
@Deprecated('''
762-
In a multi-view world, the platform dispatcher can no longer provide apis
763-
to update semantics since each view will host its own semantics tree.
764-
765-
Semantics updates must be passed to an individual [FlutterView]. To update
766-
semantics, use PlatformDispatcher.instance.views to get a [FlutterView] and
767-
call `updateSemantics`.
768-
''')
769-
void updateSemantics(SemanticsUpdate update) => _updateSemantics(update);
770-
771-
@FfiNative<Void Function(Pointer<Void>)>('PlatformConfigurationNativeApi::UpdateSemantics')
772-
external static void _updateSemantics(SemanticsUpdate update);
773-
774753
/// The system-reported default locale of the device.
775754
///
776755
/// This establishes the language and formatting conventions that application

lib/web_ui/lib/platform_dispatcher.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,6 @@ abstract class PlatformDispatcher {
8383
VoidCallback? get onAccessibilityFeaturesChanged;
8484
set onAccessibilityFeaturesChanged(VoidCallback? callback);
8585

86-
@Deprecated('''
87-
In a multi-view world, the platform dispatcher can no longer provide apis
88-
to update semantics since each view will host its own semantics tree.
89-
90-
Semantics updates must be passed to an individual [FlutterView]. To update
91-
semantics, use PlatformDispatcher.instance.views to get a [FlutterView] and
92-
call `updateSemantics`.
93-
''')
9486
void updateSemantics(SemanticsUpdate update);
9587

9688
Locale get locale;

lib/web_ui/lib/src/engine/platform_dispatcher.dart

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -690,22 +690,7 @@ class EnginePlatformDispatcher extends ui.PlatformDispatcher {
690690
_onAccessibilityFeaturesChanged, _onAccessibilityFeaturesChangedZone);
691691
}
692692

693-
/// Change the retained semantics data about this window.
694-
///
695-
/// If [semanticsEnabled] is true, the user has requested that this function
696-
/// be called whenever the semantic content of this window changes.
697-
///
698-
/// In either case, this function disposes the given update, which means the
699-
/// semantics update cannot be used further.
700693
@override
701-
@Deprecated('''
702-
In a multi-view world, the platform dispatcher can no longer provide apis
703-
to update semantics since each view will host its own semantics tree.
704-
705-
Semantics updates must be passed to an individual [FlutterView]. To update
706-
semantics, use PlatformDispatcher.instance.views to get a [FlutterView] and
707-
call `updateSemantics`.
708-
''')
709694
void updateSemantics(ui.SemanticsUpdate update) {
710695
EngineSemanticsOwner.instance.updateSemantics(update);
711696
}

0 commit comments

Comments
 (0)