cleaned up non-used code

This commit is contained in:
Régis Hanol 2013-08-13 22:09:10 +02:00
parent 0cc37ca331
commit 92b0cfe3d3
2 changed files with 0 additions and 20 deletions

View file

@ -26,25 +26,6 @@ Discourse.User = Discourse.Model.extend({
**/
staff: Em.computed.or('admin', 'moderator'),
/**
Large version of this user's avatar.
@property avatarLarge
@type {String}
**/
avatarLarge: function() {
return Discourse.Utilities.avatarUrl(this.get('username'), 'large', this.get('avatar_template'));
}.property('username'),
/**
Small version of this user's avatar.
@property avatarSmall
@type {String}
**/
avatarSmall: function() {
return Discourse.Utilities.avatarUrl(this.get('username'), 'small', this.get('avatar_template'));
}.property('username'),
searchContext: function() {
return ({ type: 'user', id: this.get('username_lower'), user: this });

View file

@ -20,7 +20,6 @@ if defined?(Rack::MiniProfiler)
(env['PATH_INFO'] !~ /topics\/timings/) &&
(env['PATH_INFO'] !~ /assets/) &&
(env['PATH_INFO'] !~ /qunit/) &&
(env['PATH_INFO'] !~ /users\/.*\/avatar/) &&
(env['PATH_INFO'] !~ /srv\/status/) &&
(env['PATH_INFO'] !~ /commits-widget/)
end