summaryrefslogtreecommitdiff
path: root/lib/gitlab/relative_positioning/range.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 18:18:33 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 18:18:33 +0000
commitf64a639bcfa1fc2bc89ca7db268f594306edfd7c (patch)
treea2c3c2ebcc3b45e596949db485d6ed18ffaacfa1 /lib/gitlab/relative_positioning/range.rb
parentbfbc3e0d6583ea1a91f627528bedc3d65ba4b10f (diff)
downloadgitlab-ce-f64a639bcfa1fc2bc89ca7db268f594306edfd7c.tar.gz
Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40
Diffstat (limited to 'lib/gitlab/relative_positioning/range.rb')
-rw-r--r--lib/gitlab/relative_positioning/range.rb34
1 files changed, 0 insertions, 34 deletions
diff --git a/lib/gitlab/relative_positioning/range.rb b/lib/gitlab/relative_positioning/range.rb
index 0b0ccdf5be4..3214c72eb8b 100644
--- a/lib/gitlab/relative_positioning/range.rb
+++ b/lib/gitlab/relative_positioning/range.rb
@@ -31,39 +31,5 @@ module Gitlab
other.is_a?(RelativePositioning::Range) && lhs == other.lhs && rhs == other.rhs
end
end
-
- class ClosedRange < RelativePositioning::Range
- def initialize(lhs, rhs)
- @lhs, @rhs = lhs, rhs
- raise IllegalRange, 'Either lhs or rhs is missing' unless lhs && rhs
- raise IllegalRange, 'lhs and rhs cannot be the same object' if lhs == rhs
- end
- end
-
- class StartingFrom < RelativePositioning::Range
- include Gitlab::Utils::StrongMemoize
-
- def initialize(lhs)
- @lhs = lhs
- raise IllegalRange, 'lhs is required' unless lhs
- end
-
- def rhs
- strong_memoize(:rhs) { lhs.rhs_neighbour }
- end
- end
-
- class EndingAt < RelativePositioning::Range
- include Gitlab::Utils::StrongMemoize
-
- def initialize(rhs)
- @rhs = rhs
- raise IllegalRange, 'rhs is required' unless rhs
- end
-
- def lhs
- strong_memoize(:lhs) { rhs.lhs_neighbour }
- end
- end
end
end