mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
removed unused method
This commit is contained in:
@@ -73,18 +73,6 @@ SocketAdmin.fireEvent = function(socket, data, callback) {
|
||||
index.server.sockets.emit(data.name, data.payload || {});
|
||||
};
|
||||
|
||||
/* Topics */
|
||||
SocketAdmin.topics.getMore = function(socket, data, callback) {
|
||||
if(!data) {
|
||||
return callback(new Error('invalid data'));
|
||||
}
|
||||
|
||||
var start = parseInt(data.after, 10),
|
||||
end = start + parseInt(data.limit, 10);
|
||||
|
||||
topics.getAllTopics(start, end, callback);
|
||||
};
|
||||
|
||||
/* User */
|
||||
SocketAdmin.user.makeAdmin = function(socket, theirid) {
|
||||
admin.user.makeAdmin(socket.uid, theirid, socket);
|
||||
|
||||
Reference in New Issue
Block a user