Skip to content

Commit 1ef1196

Browse files
Remove deprecated APIs
1 parent 8aa7feb commit 1ef1196

File tree

3 files changed

+0
-58
lines changed

3 files changed

+0
-58
lines changed

lib/react.dart

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2780,26 +2780,3 @@ _createDOMComponents(creator) {
27802780
view = creator('view');
27812781
vkern = creator('vkern');
27822782
}
2783-
2784-
/// Set configuration based on functions provided as arguments.
2785-
///
2786-
/// The arguments are assigned to global variables, and React DOM `Component`s are created by calling
2787-
/// [_createDOMComponents] with [domCreator].
2788-
///
2789-
/// > __DEPRECATED.__
2790-
/// >
2791-
/// > Environment configuration is now done by default and should not be altered. This can now be removed.
2792-
/// > This will be removed in 6.0.0, along with other configuration setting functions.
2793-
@Deprecated(
2794-
'Environment configuration is now done by default. You can remove this. Will be removed from this library in the 6.0.0 release.')
2795-
void setReactConfiguration(
2796-
domCreator,
2797-
customRegisterComponent, {
2798-
ComponentRegistrar2 customRegisterComponent2,
2799-
FunctionComponentRegistrar customRegisterFunctionComponent,
2800-
}) {
2801-
registerComponent = customRegisterComponent;
2802-
registerComponent2 = customRegisterComponent2;
2803-
// HTML Elements
2804-
_createDOMComponents(domCreator);
2805-
}

lib/react_client/component_factory.dart

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ class ReactDartComponentFactoryProxy<TComponent extends Component> extends React
9595
/// this factory.
9696
final ReactClass reactClass;
9797

98-
/// The JS component factory used by this factory to build [ReactElement]s.
99-
@Deprecated('6.0.0')
100-
ReactJsComponentFactory get reactComponentFactory => React.createFactory(reactClass);
101-
10298
/// The cached Dart default props retrieved from [reactClass] that are passed
10399
/// into [generateExtendedJsProps] upon [ReactElement] creation.
104100
final Map defaultProps;
@@ -192,10 +188,6 @@ class ReactDartComponentFactoryProxy2<TComponent extends Component2> extends Rea
192188
/// this factory.
193189
final ReactClass reactClass;
194190

195-
/// The JS component factory used by this factory to build [ReactElement]s.
196-
@Deprecated('6.0.0')
197-
ReactJsComponentFactory get reactComponentFactory => React.createFactory(reactClass);
198-
199191
final Map defaultProps;
200192

201193
ReactDartComponentFactoryProxy2(ReactClass reactClass)
@@ -222,9 +214,6 @@ class ReactJsContextComponentFactoryProxy extends ReactJsComponentFactoryProxy {
222214
final bool isProvider;
223215
final bool shouldConvertDomProps;
224216

225-
@Deprecated('6.0.0')
226-
Function get factory => React.createFactory(type);
227-
228217
ReactJsContextComponentFactoryProxy(
229218
ReactClass jsClass, {
230219
this.shouldConvertDomProps: true,
@@ -268,10 +257,6 @@ class ReactJsComponentFactoryProxy extends ReactComponentFactoryProxy {
268257
@override
269258
final ReactClass type;
270259

271-
/// The JS component factory used by this factory to build [ReactElement]s.
272-
@Deprecated('6.0.0')
273-
Function get factory => React.createFactory(type);
274-
275260
/// Whether to automatically prepare props relating to bound values and event handlers
276261
/// via [ReactDomComponentFactoryProxy.convertProps] for consumption by React JS DOM components.
277262
///
@@ -317,10 +302,6 @@ class ReactDomComponentFactoryProxy extends ReactComponentFactoryProxy {
317302
/// E.g. `'div'`, `'a'`, `'h1'`
318303
final String name;
319304

320-
/// The JS component factory used by this factory to build [ReactElement]s.
321-
@Deprecated('6.0.0')
322-
Function get factory => React.createFactory(name);
323-
324305
ReactDomComponentFactoryProxy(this.name) {
325306
// TODO: Should we remove this once we validate that the bug is gone in Dart 2 DDC?
326307
if (ddc_emulated_function_name_bug.isBugPresent) {

lib/react_dom.dart

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,3 @@ dynamic _findDomNode(component) {
3030
// ignore: deprecated_member_use_from_same_package
3131
return ReactDom.findDOMNode(component is Component ? component.jsThis : component);
3232
}
33-
34-
/// Sets configuration based on passed functions.
35-
///
36-
/// Passes arguments to global variables.
37-
///
38-
/// > __DEPRECATED.__
39-
/// >
40-
/// > Environment configuration is now done by default and should not be altered. This can now be removed.
41-
/// > This will be removed in 6.0.0, along with other configuration setting functions.
42-
@Deprecated(
43-
'Environment configuration is now done by default and should not be altered. This can be removed. Will be removed from this library in the 6.0.0 release.')
44-
setReactDOMConfiguration(Function customRender, Function customUnmountComponentAtNode, Function customFindDOMNode) {
45-
render = customRender;
46-
unmountComponentAtNode = customUnmountComponentAtNode;
47-
findDOMNode = customFindDOMNode;
48-
}

0 commit comments

Comments
 (0)