remove unused get_asset_handler

This commit is contained in:
Rich Harris
2018-03-03 21:54:19 -05:00
parent 99853c5181
commit 1b282e7b0d

View File

@@ -109,21 +109,6 @@ function serve({ prefix, pathname, cache_control }: {
};
}
function get_asset_handler({ pathname, type, cache, body }: {
pathname: string;
type: string;
cache: string;
body: string;
}) {
return (req: Req, res: ServerResponse, next: () => void) => {
if (req.pathname !== pathname) return next();
res.setHeader('Content-Type', type);
res.setHeader('Cache-Control', cache);
res.end(body);
};
}
const resolved = Promise.resolve();
function get_route_handler(chunks: Record<string, string>, routes: RouteObject[]) {