Skip to content

Commit d7caff7

Browse files
committed
Remove test file and minor fixes in fns
1 parent 8c4df13 commit d7caff7

File tree

2 files changed

+3
-60
lines changed

2 files changed

+3
-60
lines changed

src/reactor/fns.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ exports.removeObserver = function(observerState, getter, handler) {
233233

234234
/**
235235
* Removes an observer entry by id from the observerState
236+
* @param {ObserverState} observerState
237+
* @param {Immutable.Map} entry
238+
* @return {ObserverState}
236239
*/
237240
exports.removeObserverByEntry = function(observerState, entry) {
238241
return observerState.withMutations(map => {
@@ -251,13 +254,6 @@ exports.removeObserverByEntry = function(observerState, entry) {
251254
})
252255
}
253256

254-
/**
255-
* Given the current observerState and a store/getter/handler checks if still active
256-
*/
257-
exports.isValidHandler = function(observerState, storeId, getter, handler) {
258-
return !!observerState.getIn([storeId, getter, handler])
259-
}
260-
261257
/**
262258
* @param {ReactorState} reactorState
263259
* @return {ReactorState}

test.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)