diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-07 02:29:41 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-07 02:29:41 +0300 |
commit | ac26b23712963b0471db9742fc340ea4fb8935a9 (patch) | |
tree | 3eb3eea43ed5ffe83b453807ceef00488a0fe2e5 /app/models/concerns/note_on_diff.rb | |
parent | 2db75f8debd96c48c6cb8548824dd72bd71fb176 (diff) |
Remove duplication, unused methods, and some other style things
Diffstat (limited to 'app/models/concerns/note_on_diff.rb')
-rw-r--r-- | app/models/concerns/note_on_diff.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/concerns/note_on_diff.rb b/app/models/concerns/note_on_diff.rb index 6d8b9b76c84..2785fbb21c9 100644 --- a/app/models/concerns/note_on_diff.rb +++ b/app/models/concerns/note_on_diff.rb @@ -33,13 +33,11 @@ module NoteOnDiff # Returns an array of at most 16 highlighted lines above a diff note def truncated_diff_lines - prev_match_line = nil prev_lines = [] highlighted_diff_lines.each do |line| if line.meta? prev_lines.clear - prev_match_line = line else prev_lines << line |