diff --git a/src/actions/index.js b/src/actions/index.js index 1b24f49..8530bb8 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -218,13 +218,6 @@ export function decrementNarrativeCurrent () { } } -export const RESET_ALLFILTERS = 'RESET_ALLFILTERS' -export function resetAllFilters () { - return { - type: RESET_ALLFILTERS - } -} - export const UPDATE_SOURCE = 'UPDATE_SOURCE' export function updateSource (source) { return { diff --git a/src/reducers/app.js b/src/reducers/app.js index b47db77..ce2e207 100644 --- a/src/reducers/app.js +++ b/src/reducers/app.js @@ -164,20 +164,6 @@ function updateTimeRange (appState, action) { // XXX } } -function resetAllFilters (appState) { // XXX - return Object.assign({}, appState, { - filters: Object.assign({}, appState.filters, { - tags: [], - categories: [], - timerange: [ - d3.timeParse('%Y-%m-%dT%H:%M:%S')('2014-09-25T12:00:00'), - d3.timeParse('%Y-%m-%dT%H:%M:%S')('2014-09-28T12:00:00') - ] - }), - selected: [] - }) -} - function toggleLanguage (appState, action) { let otherLanguage = (appState.language === 'es-MX') ? 'en-US' : 'es-MX' return Object.assign({}, appState, {