diff --git a/src/pages/App.tsx b/src/pages/App.tsx
index 90223823e1..c8ce6c7589 100644
--- a/src/pages/App.tsx
+++ b/src/pages/App.tsx
@@ -40,7 +40,7 @@ import PoolFinder from './PoolFinder'
import RemoveLiquidity from './RemoveLiquidity'
import RemoveLiquidityV3 from './RemoveLiquidity/V3'
import Swap from './Swap'
-import { OpenClaimAddressModalAndRedirectToSwap, RedirectPathToSwapOnly, RedirectToSwap } from './Swap/redirects'
+import { OpenClaimAddressModalAndRedirectToSwap, RedirectPathToSwapOnly } from './Swap/redirects'
import Tokens from './Tokens'
const TokenDetails = lazy(() => import('./TokenDetails'))
@@ -214,7 +214,6 @@ export default function App() {
} />
} />
- } />
} />
} />
diff --git a/src/pages/Swap/redirects.tsx b/src/pages/Swap/redirects.tsx
index d661dc8282..f803b65e5a 100644
--- a/src/pages/Swap/redirects.tsx
+++ b/src/pages/Swap/redirects.tsx
@@ -1,5 +1,5 @@
import { useEffect } from 'react'
-import { Navigate, useLocation, useParams } from 'react-router-dom'
+import { Navigate, useLocation } from 'react-router-dom'
import { useAppDispatch } from 'state/hooks'
import { ApplicationModal, setOpenModal } from '../../state/application/reducer'
@@ -10,27 +10,6 @@ export function RedirectPathToSwapOnly() {
return
}
-// Redirects from the /swap/:outputCurrency path to the /swap?outputCurrency=:outputCurrency format
-export function RedirectToSwap() {
- const location = useLocation()
- const { search } = location
- const { outputCurrency } = useParams<{ outputCurrency: string }>()
-
- return (
- 1
- ? `${search}&outputCurrency=${outputCurrency}`
- : `?outputCurrency=${outputCurrency}`,
- }}
- replace
- />
- )
-}
-
export function OpenClaimAddressModalAndRedirectToSwap() {
const dispatch = useAppDispatch()
useEffect(() => {