diff --git a/src/socket.io/user/picture.js b/src/socket.io/user/picture.js index acc1107173..6149eff50d 100644 --- a/src/socket.io/user/picture.js +++ b/src/socket.io/user/picture.js @@ -19,14 +19,6 @@ module.exports = function(SocketUser) { var type = data.type; - // if (type === 'default') { - // type = null; - // } else if (type === 'uploaded') { - // type = 'uploadedpicture'; - // } else { - // return callback(new Error('[[error:invalid-image-type, ' + ['default', 'uploadedpicture'].join(', ') + ']]')); - // } - async.waterfall([ function (next) { user.isAdminOrSelf(socket.uid, data.uid, next);