Skip to content

Commit

Permalink
Deprecations clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
freak4pc committed Apr 9, 2019
1 parent d07918c commit 99d6b58
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 35 deletions.
1 change: 0 additions & 1 deletion .jazzy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ custom_categories:
- name: RxSwift/Platform
children:
- AtomicInt
- DeprecationWarner
- DispatchQueue+Extensions
- Platform.Darwin
- Platform.Linux
Expand Down
1 change: 0 additions & 1 deletion Sources/AllTestz/DeprecationWarner.swift

This file was deleted.

1 change: 0 additions & 1 deletion Sources/AllTestz/VariableTest.swift

This file was deleted.

15 changes: 0 additions & 15 deletions Sources/AllTestz/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1966,20 +1966,6 @@ final class SingleTest_ : SingleTest, RxTestCase {
] }
}

final class VariableTest_ : VariableTest, RxTestCase {
#if os(macOS)
required override init() {
super.init()
}
#endif

static var allTests: [(String, (VariableTest_) -> () -> Void)] { return [
("testVariable_initialValues", VariableTest.testVariable_initialValues),
("testVariable_sendsCompletedOnDealloc", VariableTest.testVariable_sendsCompletedOnDealloc),
("testVariable_READMEExample", VariableTest.testVariable_READMEExample),
] }
}

final class VirtualSchedulerTest_ : VirtualSchedulerTest, RxTestCase {
#if os(macOS)
required override init() {
Expand Down Expand Up @@ -2108,7 +2094,6 @@ func XCTMain(_ tests: [() -> Void]) {
testCase(SharingSchedulerTest_.allTests),
testCase(SignalTests_.allTests),
testCase(SingleTest_.allTests),
testCase(VariableTest_.allTests),
testCase(VirtualSchedulerTest_.allTests),
])
//}
1 change: 0 additions & 1 deletion Sources/RxSwift/DeprecationWarner.swift

This file was deleted.

1 change: 0 additions & 1 deletion Sources/RxTest/DeprecationWarner.swift

This file was deleted.

15 changes: 0 additions & 15 deletions Tests/RxCocoaTests/Driver+Test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,21 +177,6 @@ extension DriverTest {
XCTAssertEqual(results, [0, 1, 2])
}

func testVariableAsDriver() {
var hotObservable: BehaviorRelay<Int>? = BehaviorRelay(value: 1)
let xs = Driver.zip(hotObservable!.asDriver(), Driver.of(0, 0)) { optInt, _ in
return optInt
}

let results = subscribeTwiceOnBackgroundSchedulerAndOnlyOneSubscription(xs) {
hotObservable?.accept(1)
hotObservable?.accept(2)
hotObservable = nil
}

XCTAssertEqual(results, [1, 1])
}

func testAsDriver_onErrorJustReturn() {
let hotObservable = BackgroundThreadPrimitiveHotObservable<Int>()
let xs = hotObservable.asDriver(onErrorJustReturn: -1)
Expand Down

0 comments on commit 99d6b58

Please sign in to comment.