Remove dead code

* The SCOPE_PATERN constraints `namespace` to be characters that are
  valid literal static regexp.
* Not test case can be created that forces Regexp.escape here.
This commit is contained in:
Markus Schirp 2014-09-17 00:49:39 +00:00
parent 831a1750f6
commit a52e2615f2

View file

@ -28,11 +28,10 @@ module Mutant
# @api private
def initialize(*)
super
namespace_src = Regexp.escape(namespace)
@recursion_pattern = Regexp.union(
/\A#{namespace_src}\z/,
/\A#{namespace_src}::/,
/\A#{namespace_src}[.#]/
/\A#{namespace}\z/,
/\A#{namespace}::/,
/\A#{namespace}[.#]/
)
end