Skip to content

Commit 573ad10

Browse files
committed
Removed most deprecated code
1 parent 0a2ed2d commit 573ad10

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

core/src/main/scala/japgolly/scalajs/react/package.scala

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ package object react {
4444
type ReactUIEventI = SyntheticUIEvent [html.Input]
4545
type ReactWheelEventI = SyntheticWheelEvent [html.Input]
4646

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-
5047
/**
5148
* These exist for type inference.
5249
* 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 {
213210
}
214211

215212
@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)
219213
@inline def renderC[P, S, B, N <: TopNode](c: ReactComponentU[P,S,B,N], n: dom.Node)(callback: ComponentScopeMN[P,S,B,N] => Unit) =
220214
_r.render(c, n, callback)
221215
}
@@ -299,14 +293,6 @@ package object react {
299293
@inline def modState(f: S => S, cb: OpCallback = undefined)(implicit C: CC): Unit =
300294
setState(f(state), cb)
301295

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-
310296
@inline def focusStateId(implicit C: CC) = new ComponentStateFocus[S](
311297
() => _c.state,
312298
(a: S, cb: OpCallback) => _c.setState(a, cb))

core/src/main/scala/japgolly/scalajs/react/vdom/Extra.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ object Extra {
1717
}
1818

1919
final class AttrExt(val _a: Attr) extends AnyVal {
20-
@deprecated("[attr runs callback] will be removed in 0.8.0. Use [attr --> callback].", "v0.7.0")
21-
@inline def runs(callback: => Unit) = -->(callback)
2220
@inline def -->(callback: => Unit) = _a := ((() => callback): js.Function)
2321
@inline def ==>[N <: dom.Node, E <: SyntheticEvent[N]](eventHandler: E => Unit) = _a := (eventHandler: js.Function)
2422
}

doc/CHANGELOG-0.8.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
##### Breaking
44
* Upgrade [scalajs-dom](https://github.com/scala-js/scala-js-dom) from 0.7.0 to 0.8.0.
55
Note the [package reorg](https://github.com/scala-js/scala-js-dom/commit/8208d792ad0a32dce7b4b9ea53f0d27040a7a7f3).
6+
* Removed deprecated code scheduled for deletion in 0.8.0.
67

78
##### Scalatags
89
* Fixed React warnings about certain styles.

0 commit comments

Comments
 (0)