Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ukutaht committed Jun 29, 2021
1 parent 06aaae6 commit 574ec78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion assets/js/dashboard/filters.js
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
import React from 'react';
import { withRouter, Link } from 'react-router-dom'
import { countFilters, formattedFilters, navigateToQuery, removeQueryParam } from './query'
import { countFilters, formattedFilters, navigateToQuery } from './query'
import Datamap from 'datamaps'
import Transition from "../transition.js";

Expand Down
6 changes: 0 additions & 6 deletions assets/js/dashboard/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 144,6 @@ export function toHuman(query) {
}
}

export function removeQueryParam(search, parameter) {
const q = new URLSearchParams(search)
q.delete(parameter)
return q.toString()
}

export function eventName(query) {
if (query.filters.goal) {
if (query.filters.goal.startsWith('Visit ')) {
Expand Down

0 comments on commit 574ec78

Please sign in to comment.