diff --git a/lib/actions/user.js b/lib/actions/user.js index 14287dec5..149d7cf9a 100644 --- a/lib/actions/user.js +++ b/lib/actions/user.js @@ -163,22 +163,6 @@ function convertRequestToSearch(config) { requestParameters = {} // Deprecated OTP1 } = tripRequest const { host, path } = config.api - - // FIXME: remove if OTP-UI no longer includes trailing bracket - // Don't use ?. syntax, fromPlace and toPlace need to be defined in order to be replaced. - if (otp2QueryParams.fromPlace && otp2QueryParams.fromPlace.endsWith('}')) { - otp2QueryParams.fromPlace = otp2QueryParams.fromPlace.substring( - 0, - otp2QueryParams.fromPlace.length - 2 - ) - } - if (otp2QueryParams.toPlace && otp2QueryParams.toPlace.endsWith('}')) { - otp2QueryParams.toPlace = otp2QueryParams.toPlace.substring( - 0, - otp2QueryParams.toPlace.length - 2 - ) - } - return { canDelete: false, id,