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
|
# @api private
|
||||||
def initialize(*)
|
def initialize(*)
|
||||||
super
|
super
|
||||||
namespace_src = Regexp.escape(namespace)
|
|
||||||
@recursion_pattern = Regexp.union(
|
@recursion_pattern = Regexp.union(
|
||||||
/\A#{namespace_src}\z/,
|
/\A#{namespace}\z/,
|
||||||
/\A#{namespace_src}::/,
|
/\A#{namespace}::/,
|
||||||
/\A#{namespace_src}[.#]/
|
/\A#{namespace}[.#]/
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue