From 0b48e7272d85ffabdaf4aac01e240e71c98c09b2 Mon Sep 17 00:00:00 2001
From: Jack Hanford <jackhanford@gmail.com>
Date: Wed, 10 Nov 2021 14:53:48 -0800
Subject: remove a bunch of dead code / unused variables

---
 packages/bun-framework-next/client.development.tsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'packages/bun-framework-next/client.development.tsx')

diff --git a/packages/bun-framework-next/client.development.tsx b/packages/bun-framework-next/client.development.tsx
index 2dcffe55c..63e31bff8 100644
--- a/packages/bun-framework-next/client.development.tsx
+++ b/packages/bun-framework-next/client.development.tsx
@@ -59,7 +59,6 @@ declare global {
 function nextDataFromBunData() {
   const {
     router: { routes, route, params: paramsList },
-    problems,
   } = globalThis.__BUN_DATA__;
 
   const paramsMap = new Map();
@@ -100,13 +99,13 @@ type RenderRouteInfo = PrivateRouteInfo & {
   App: AppComponent;
   scroll?: { x: number; y: number } | null;
 };
-type RenderErrorProps = Omit<RenderRouteInfo, "Component" | "styleSheets">;
 
 const nextDataTag = document.getElementById("__NEXT_DATA__");
 
 const data: typeof window["__NEXT_DATA__"] = nextDataTag
   ? JSON.parse(document.getElementById("__NEXT_DATA__")!.textContent!)
   : nextDataFromBunData();
+
 window.__NEXT_DATA__ = data;
 
 const {
@@ -151,8 +150,6 @@ const headManager: {
 } = initHeadManager();
 const appElement: HTMLElement | null = document.getElementById("__next");
 
-let lastRenderReject: (() => void) | null;
-let webpackHMR: any;
 export let router: Router;
 let CachedApp: AppComponent = App,
   onPerfEntry: (metric: any) => void;
-- 
cgit v1.2.3

