From c11a3c318eb07e26409b27d35f66218eb898b574 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Sat, 5 Oct 2019 15:01:38 +0800 Subject: [PATCH] Remove unused code --- packages/saber-plugin-search/lib/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/saber-plugin-search/lib/index.js b/packages/saber-plugin-search/lib/index.js index 7e03b27fb..13367513a 100644 --- a/packages/saber-plugin-search/lib/index.js +++ b/packages/saber-plugin-search/lib/index.js @@ -79,10 +79,6 @@ exports.apply = (api, options) => { api.browserApi.add(join(__dirname, 'saber-browser.js')) if (api.dev) { - // api.hooks.onCreateRenderer.tapPromise(ID, async () => { - // db = await generateDatabase() - // }) - api.hooks.onCreateServer.tap(ID, server => { server.get('/_saber/plugin-search/:locale.json', async (req, res) => { db = await generateDatabase()