diff options
author | Saito <saitowu@gmail.com> | 2012-11-08 21:41:07 +0400 |
---|---|---|
committer | Saito <saitowu@gmail.com> | 2012-11-08 21:41:07 +0400 |
commit | f1ac2a616bedc2941bc7f67e2ac25e915da2ddb2 (patch) | |
tree | 9b90978fd0bcb67d5a359efbc71ded8ceb4333c0 /config | |
parent | 96211b01a86c0f147dda88f336e9443c94f46ea4 (diff) |
remove encode lib, clean all encoded area.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/3_grit_ext.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/config/initializers/3_grit_ext.rb b/config/initializers/3_grit_ext.rb index fd7e288a2ba..d114ea6cc8b 100644 --- a/config/initializers/3_grit_ext.rb +++ b/config/initializers/3_grit_ext.rb @@ -6,23 +6,4 @@ Grit::Git.git_max_size = Gitlab.config.git_max_size Grit::Blob.class_eval do include Linguist::BlobHelper - - def data - @data ||= @repo.git.cat_file({:p => true}, id) - Gitlab::Encode.utf8 @data - end -end - -Grit::Diff.class_eval do - def old_path - Gitlab::Encode.utf8 @a_path - end - - def new_path - Gitlab::Encode.utf8 @b_path - end - - def diff - Gitlab::Encode.utf8 @diff - end end |