Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Remove unused WINDOW_SET_URL_BAR_SUGGESTION_SEARCH_RESULTS
Browse files Browse the repository at this point in the history
Auditors: @bsclifton
  • Loading branch information
bbondy committed Mar 31, 2017
1 parent 44e9f31 commit 215cba3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions app/renderer/reducers/urlBarSuggestionsReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,6 @@ const urlBarSuggestionsReducer = (state, action) => {
state = state.setIn(activeFrameStatePath(state).concat(['navbar', 'urlbar', 'suggestions', 'selectedIndex']), action.selectedIndex)
state = setUrlSuggestions(state, action.suggestionList)
break
case windowConstants.WINDOW_SET_URL_BAR_SUGGESTION_SEARCH_RESULTS:
state = state.setIn(activeFrameStatePath(state).concat(['navbar', 'urlbar', 'suggestions', 'searchResults']), action.searchResults)
break
case windowConstants.WINDOW_SET_URL_BAR_ACTIVE:
state = state.setIn(activeFrameStatePath(state).concat(['navbar', 'urlbar', 'active']), action.isActive)
if (!action.isActive) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,6 @@ describe('urlBarSuggestionsReducer unit tests', function () {
})
})

describe('WINDOW_SET_URL_BAR_SUGGESTION_SEARCH_RESULTS', function () {
it('search results can be updated', function () {
const searchResults = Immutable.fromJS(['0.577215'])
const newState = urlBarSuggestionsReducer(windowState, {actionType: windowConstants.WINDOW_SET_URL_BAR_SUGGESTION_SEARCH_RESULTS, searchResults})
assert.deepEqual(newState.getIn(['frames', 1, 'navbar', 'urlbar', 'suggestions', 'searchResults']).toJS(), searchResults.toJS())
})
})

describe('WINDOW_SET_URL_BAR_ACTIVE', function () {
it('active state can be toggled', function () {
let newState = urlBarSuggestionsReducer(windowState, {actionType: windowConstants.WINDOW_SET_URL_BAR_ACTIVE, isActive: true})
Expand Down

1 comment on commit 215cba3

@bsclifton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.