diff --git a/package.json b/package.json index 6860a4209b..e04f3d8892 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "express": "^4.9.5", "express-session": "^1.8.2", "express-useragent": "0.2.4", - "heapdump": "^0.3.0", "html-to-text": "1.5.0", "jimp": "0.2.20", "less": "^2.0.0", diff --git a/src/socket.io/admin.js b/src/socket.io/admin.js index 3f63fa4bee..9652872fa5 100644 --- a/src/socket.io/admin.js +++ b/src/socket.io/admin.js @@ -2,17 +2,13 @@ var async = require('async'), winston = require('winston'), - fs = require('fs'), - path = require('path'), - groups = require('../groups'), + meta = require('../meta'), plugins = require('../plugins'), widgets = require('../widgets'), user = require('../user'), - topics = require('../topics'), posts = require('../posts'), - categories = require('../categories'), logger = require('../logger'), events = require('../events'), emailer = require('../emailer'), @@ -277,7 +273,7 @@ function getHourlyStatsForSet(set, hour, numHours, callback) { var termsArr = []; hoursArr.reverse(); - hoursArr.forEach(function(hour, idx) { + hoursArr.forEach(function(hour) { termsArr.push(terms[hour]); }); @@ -307,7 +303,7 @@ function getDailyStatsForSet(set, day, numDays, callback) { }, function(err) { callback(err, daysArr); }); -}; +} SocketAdmin.getMoreEvents = function(socket, next, callback) { var start = parseInt(next, 10); @@ -359,8 +355,4 @@ SocketAdmin.getMoreFlags = function(socket, data, callback) { } }; -SocketAdmin.takeHeapSnapshot = function(socket, data, callback) { - require('heapdump').writeSnapshot(callback); -}; - module.exports = SocketAdmin; diff --git a/src/views/admin/development/logger.tpl b/src/views/admin/development/logger.tpl index 6e9a932230..4a280238b7 100644 --- a/src/views/admin/development/logger.tpl +++ b/src/views/admin/development/logger.tpl @@ -32,12 +32,6 @@ -
-
Heap Snapshot
-
- -
-
@@ -54,14 +48,5 @@