diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-12-22 14:49:56 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-12-22 20:07:15 +0300 |
commit | 771bf9527ffd5fd8fe258381593f686d5d960a42 (patch) | |
tree | e15ff12e3419aa751e3d54e6af7823a88f7be930 /app/models/concerns/note_on_diff.rb | |
parent | 92e15071c13f65cf7250315f1a138284880b0074 (diff) |
Improve performance of DiffDiscussion#truncated_diff_lines and DiffNote#diff_line by removing expensive diff position calculation and comparison
Diffstat (limited to 'app/models/concerns/note_on_diff.rb')
-rw-r--r-- | app/models/concerns/note_on_diff.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/concerns/note_on_diff.rb b/app/models/concerns/note_on_diff.rb index f734952fa6c..510b8868462 100644 --- a/app/models/concerns/note_on_diff.rb +++ b/app/models/concerns/note_on_diff.rb @@ -14,10 +14,6 @@ module NoteOnDiff raise NotImplementedError end - def for_line?(line) - raise NotImplementedError - end - def original_line_code raise NotImplementedError end |