Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-01-19 15:56:36 +0300
committerDouwe Maan <douwe@gitlab.com>2016-01-19 15:56:36 +0300
commit0a8039eb7790426880bdd7b9d67775aeb6e5dac7 (patch)
treea96a8c63a97b364d76b409b3df5b1d83996f376c /lib/gitlab/diff
parent12546f895f86929ffe69299a02c93692370ee55a (diff)
Remove useless assignments
Diffstat (limited to 'lib/gitlab/diff')
-rw-r--r--lib/gitlab/diff/inline_diff_marker.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/diff/inline_diff_marker.rb b/lib/gitlab/diff/inline_diff_marker.rb
index 405465a641f..8998ccba5ce 100644
--- a/lib/gitlab/diff/inline_diff_marker.rb
+++ b/lib/gitlab/diff/inline_diff_marker.rb
@@ -31,10 +31,8 @@ module Gitlab
def position_mapping
@position_mapping ||= begin
mapping = []
- raw_pos = 0
rich_pos = 0
(0..raw_line.length).each do |raw_pos|
- raw_char = raw_line[raw_pos]
rich_char = rich_line[rich_pos]
# The raw and rich lines are the same except for HTML tags,