Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Oct 1, 2021
1 parent ed830fd commit 68641d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/fragments/forms/map-form/components/download/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
},
methods: {
/**
* Set the default filename and format and open the dowload modal
* Set the default filename and format and open the download modal
*/
openDownload () {
this.downloadFileName = this.defaultDownloadName
Expand Down Expand Up @@ -183,7 +183,7 @@ export default {
*/
getORSGpx () {
const context = this
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
// Build the args for a directions api request
let args = OrsParamsParser.buildRoutingArgs(context.mapViewData.places)
// merge the args with the ones applied in the user request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,6 @@ export default {
}
},
methods: {
/**
* Prepare and print route instructions
*/
prepareAndPrintInstructions() {
let mapView = document.getElementById('map-view')
let route = this.parsedRoutes[this.$store.getters.activeRouteIndex]
let places = this.mapViewData.places
MapViewExporter.printRouteInstructions(route, places, mapView, this.$t('routeDetails'))
},

formatElevation (elevation) {
const value = Math.abs(elevation).toFixed(1)
return value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
}),
computed: {
contentTitle () {
let rangeTranslObject = this.$t(`orsMapFilters.filters.range_type`)
let rangeTranslObject = this.$t('orsMapFilters.filters.range_type')
let activeProfile = this.localMapViewData.options.profile
let title = this.$t(`orsMapFilters.profiles.${activeProfile}`) + '<br/>'
let rangeType = this.localMapViewData.options.range_type
Expand Down

0 comments on commit 68641d0

Please sign in to comment.