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:
parent
831a1750f6
commit
a52e2615f2
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue