From d9a071d7109574ce6c7e9f0725219b4bd1152786 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 14 Nov 2014 21:16:35 -0500 Subject: [PATCH] removed unused code from category and topic controller --- src/controllers/categories.js | 6 ------ src/controllers/topics.js | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/controllers/categories.js b/src/controllers/categories.js index dae575080a..81c2dcc459 100644 --- a/src/controllers/categories.js +++ b/src/controllers/categories.js @@ -241,12 +241,6 @@ categoriesController.get = function(req, res, next) { return res.redirect(data.link); } - var category_url = cid + (req.params.slug ? '/' + req.params.slug : ''); - var queryString = qs.stringify(req.query); - if(queryString.length) { - category_url += '?' + queryString; - } - data.currentPage = page; data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1; data.csrf = req.csrfToken(); diff --git a/src/controllers/topics.js b/src/controllers/topics.js index d2ff101636..f5555df140 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -239,12 +239,6 @@ topicsController.get = function(req, res, next) { data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1; data.csrf = req.csrfToken(); - var topic_url = tid + (req.params.slug ? '/' + req.params.slug : ''); - var queryString = qs.stringify(req.query); - if(queryString.length) { - topic_url += '?' + queryString; - } - topics.increaseViewCount(tid); if (!res.locals.isAPI) {