@@ -44,9 +44,6 @@ package object react {
44
44
type ReactUIEventI = SyntheticUIEvent [html.Input ]
45
45
type ReactWheelEventI = SyntheticWheelEvent [html.Input ]
46
46
47
- @ deprecated(" React 0.12 has introduced ReactElement which is what VDom was created to represent. Replace VDom with ReactElement." , " 0.6.0" )
48
- type VDom = ReactElement
49
-
50
47
/**
51
48
* These exist for type inference.
52
49
* If P,S,B,N types are needed and there's another object that has them, this is used to bridge for type inference.
@@ -213,9 +210,6 @@ package object react {
213
210
}
214
211
215
212
@ inline implicit final class ReactExt_ReactObj (val _r : React .type ) extends AnyVal {
216
- @ deprecated(" React.renderComponentC will be deprecated in a future version. Use React.renderC instead." , " 0.6.0" )
217
- @ inline def renderComponentC [P , S , B , N <: TopNode ](c : ReactComponentU [P ,S ,B ,N ], n : dom.Node )(callback : ComponentScopeMN [P ,S ,B ,N ] => Unit ) =
218
- _r.render(c, n, callback)
219
213
@ inline def renderC [P , S , B , N <: TopNode ](c : ReactComponentU [P ,S ,B ,N ], n : dom.Node )(callback : ComponentScopeMN [P ,S ,B ,N ] => Unit ) =
220
214
_r.render(c, n, callback)
221
215
}
@@ -299,14 +293,6 @@ package object react {
299
293
@ inline def modState (f : S => S , cb : OpCallback = undefined)(implicit C : CC ): Unit =
300
294
setState(f(state), cb)
301
295
302
- @ deprecated(" modStateO will be removed in v0.8.x" , " v0.7.0" )
303
- @ inline def modStateO (f : S => Option [S ], cb : OpCallback = undefined)(implicit C : CC ): Unit =
304
- f(state).fold(())(setState(_, cb))
305
-
306
- @ deprecated(" modStateU will be removed in v0.8.x" , " v0.7.0" )
307
- @ inline def modStateU (f : S => UndefOr [S ], cb : OpCallback = undefined)(implicit C : CC ): Unit =
308
- f(state).fold(())(setState(_, cb))
309
-
310
296
@ inline def focusStateId (implicit C : CC ) = new ComponentStateFocus [S ](
311
297
() => _c.state,
312
298
(a : S , cb : OpCallback ) => _c.setState(a, cb))
0 commit comments