From 92b0cfe3d35838ea283eb543f2e6890af27a86a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 13 Aug 2013 22:09:10 +0200 Subject: [PATCH] cleaned up non-used code --- .../javascripts/discourse/models/user.js | 19 ------------------- config/initializers/06-mini_profiler.rb | 1 - 2 files changed, 20 deletions(-) diff --git a/app/assets/javascripts/discourse/models/user.js b/app/assets/javascripts/discourse/models/user.js index 4cf9bf289..d1b842661 100644 --- a/app/assets/javascripts/discourse/models/user.js +++ b/app/assets/javascripts/discourse/models/user.js @@ -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 }); diff --git a/config/initializers/06-mini_profiler.rb b/config/initializers/06-mini_profiler.rb index 3858000af..a7a5dbec5 100644 --- a/config/initializers/06-mini_profiler.rb +++ b/config/initializers/06-mini_profiler.rb @@ -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