From 342e23115523210b60b9f557f1cfbcfdc3361af0 Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Fri, 9 Jun 2017 16:13:41 -0500 Subject: Resolve inconsistencies --- lib/gitlab/regex.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib') diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index 009ecc9b263..e4d2a992470 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -62,13 +62,5 @@ module Gitlab "can contain only lowercase letters, digits, and '-'. " \ "Must start with a letter, and cannot end with '-'" end - - private - - def single_line_regexp(regex) - # Turns a multiline extended regexp into a single line one, - # beacuse `rake routes` breaks on multiline regexes. - Regexp.new(regex.source.gsub(/\(\?#.+?\)/, '').gsub(/\s*/, ''), regex.options ^ Regexp::EXTENDED).freeze - end end end -- cgit v1.2.3