From 6ced924bc891e4a598b6e0dbdbc9523689a35459 Mon Sep 17 00:00:00 2001 From: json Date: Wed, 8 Sep 2021 12:25:41 +0100 Subject: [PATCH] remove unused processSubredditsExplore function --- routes/home.js | 2 -- routes/save.js | 2 -- routes/user.js | 2 -- 3 files changed, 6 deletions(-) diff --git a/routes/home.js b/routes/home.js index 2997767..b68ba45 100644 --- a/routes/home.js +++ b/routes/home.js @@ -5,8 +5,6 @@ const homeRoute = require('express').Router(); const processJsonSubreddit = require('../inc/processJsonSubreddit.js'); const tedditApiSubreddit = require('../inc/teddit_api/handleSubreddit.js')(); const processMoreComments = require('../inc/processMoreComments.js')(); -const processSubredditsExplore = - require('../inc/processSubredditsExplore.js')(); homeRoute.get('/:sort?', async (req, res, next) => { let past = req.query.t; diff --git a/routes/save.js b/routes/save.js index e09d23a..9479700 100644 --- a/routes/save.js +++ b/routes/save.js @@ -5,8 +5,6 @@ const saveRoutes = require('express').Router(); const processJsonSubreddit = require('../inc/processJsonSubreddit.js'); const tedditApiSubreddit = require('../inc/teddit_api/handleSubreddit.js')(); const processMoreComments = require('../inc/processMoreComments.js')(); -const processSubredditsExplore = - require('../inc/processSubredditsExplore.js')(); saveRoutes.get('/saved', (req, res, next) => { let saved = req.cookies.saved; diff --git a/routes/user.js b/routes/user.js index bbdc8af..23b2150 100644 --- a/routes/user.js +++ b/routes/user.js @@ -7,8 +7,6 @@ const tedditApiUser = require('../inc/teddit_api/handleUser.js')(); const processJsonSubreddit = require('../inc/processJsonSubreddit.js'); const tedditApiSubreddit = require('../inc/teddit_api/handleSubreddit.js')(); const processMoreComments = require('../inc/processMoreComments.js')(); -const processSubredditsExplore = - require('../inc/processSubredditsExplore.js')(); userRoutes.get('/user/:user/:kind?', (req, res, next) => { let kind = '';