Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Object {
"countryCode": "US",
},
"realtimeEffectsDisplayThreshold": 120,
"routingTypes": Array [],
"stopViewer": Object {
"showBlockIds": false,
},
Expand Down
5 changes: 0 additions & 5 deletions a11y/test-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ api:
# host: http://localhost:8001 # For testing against a local OTP instance
path: /otp/routers/default

# Enabled multimodal routing types (e.g. interary, profile)
routingTypes:
- key: ITINERARY
text: Exact Time

# Show/hide elevation profile chart for walk/bike legs
# elevationProfile: true

Expand Down
4 changes: 0 additions & 4 deletions example/example-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,6 @@ modes:
# # NOTE: headerGraphic requires a valid URL to a png file.
# headerGraphic: 'https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/Trimet_logo.svg/1280px-Trimet_logo.svg.png'

routingTypes:
- key: ITINERARY
text: Exact Time

# Itinerary options
itinerary:
# Provides an array of valid mode combinations that returned itineraries will be filtered against
Expand Down
19 changes: 0 additions & 19 deletions lib/components/app/responsive-webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,23 +128,6 @@ class ResponsiveWebapp extends Component {
// console.log('url changed to', location.pathname)
matchContentToUrl(map, location)
}

// Check for change between ITINERARY and PROFILE routingTypes
// TODO: restore this for profile mode
/* if (query.routingType !== nextProps.query.routingType) {
let queryModes = nextProps.query.mode.split(',')
// If we are entering 'ITINERARY' mode, ensure that one and only one access mode is selected
if (nextProps.query.routingType === 'ITINERARY') {
queryModes = ensureSingleAccessMode(queryModes)
this.props.setQueryParam({ mode: queryModes.join(',') })
}
// If we are entering 'PROFILE' mode, ensure that CAR_HAIL is not selected
// TODO: make this more generic, i.e. introduce concept of mode->routingType permissions
if (nextProps.query.routingType === 'ITINERARY') {
queryModes = queryModes.filter(mode => mode !== 'CAR_HAIL')
this.props.setQueryParam({ mode: queryModes.join(',') })
}
} */
}

componentDidMount() {
Expand All @@ -157,7 +140,6 @@ class ResponsiveWebapp extends Component {
map,
matchContentToUrl,
parseUrlQueryString,
receivedPositionResponse,
setNetworkConnectionLost
} = this.props
// Add on back button press behavior.
Expand Down Expand Up @@ -280,7 +262,6 @@ const mapDispatchToProps = {
initializeModules: callTakerActions.initializeModules,
matchContentToUrl: uiActions.matchContentToUrl,
parseUrlQueryString: formActions.parseUrlQueryString,
receivedPositionResponse: locationActions.receivedPositionResponse,
setLocationToCurrent: mapActions.setLocationToCurrent,
setMapCenter: mapActions.setMapCenter,
setPopupContent: uiActions.setPopupContent
Expand Down
1 change: 0 additions & 1 deletion lib/reducers/create-otp-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export function getInitialState(userDefinedConfig) {
language: {},
onTimeThresholdSeconds: 60,
realtimeEffectsDisplayThreshold: 120,
routingTypes: [],
stopViewer: {
// Hide block ids unless explicitly enabled in config.
showBlockIds: false
Expand Down
6 changes: 0 additions & 6 deletions percy/har-mock-config-call-taker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ api:
path: /otp2/routers/default
v2: true

routingTypes:
- key: ITINERARY
text: Exact Time
- key: BATCH
text: Multiple Mode Combinations

# Declare the calltaker module, although it will only be used during the calltaker portion of the percy tests.
# and not in the "normal" OTP-RR portion.
modules:
Expand Down
6 changes: 0 additions & 6 deletions percy/har-mock-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ api:
path: /otp2/routers/default
v2: true

routingTypes:
- key: ITINERARY
text: Exact Time
- key: BATCH
text: Multiple Mode Combinations

elevationProfile: true
map:
views:
Expand Down
Loading