From 0e9479f5d23931b4b399c96d5ca9d17ec305cbf6 Mon Sep 17 00:00:00 2001 From: Zack Tanner <1939140+ztanner@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:47:44 -0700 Subject: [PATCH] cleanup unused pages router method (#67722) This appears to be leftover from early RSC experimentation. --- packages/next/src/shared/lib/router/router.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/next/src/shared/lib/router/router.ts b/packages/next/src/shared/lib/router/router.ts index 32aecea6655f3..6cc5ba2a9b704 100644 --- a/packages/next/src/shared/lib/router/router.ts +++ b/packages/next/src/shared/lib/router/router.ts @@ -2501,18 +2501,6 @@ export default class Router implements BaseRouter { }) } - _getFlightData(dataHref: string) { - // Do not cache RSC flight response since it's not a static resource - return fetchNextData({ - dataHref, - isServerRender: true, - parseJSON: false, - inflightCache: this.sdc, - persistCache: false, - isPrefetch: false, - }).then(({ text }) => ({ data: text })) - } - getInitialProps( Component: ComponentType, ctx: NextPageContext