From a872c9a1cb4283557aba0d9372350e337b5521b0 Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Sun, 8 Sep 2013 22:22:10 -0700 Subject: [PATCH] Remove dead code --- lib/mutant/mutation/filter/code.rb | 49 ------------------------------ 1 file changed, 49 deletions(-) delete mode 100644 lib/mutant/mutation/filter/code.rb diff --git a/lib/mutant/mutation/filter/code.rb b/lib/mutant/mutation/filter/code.rb deleted file mode 100644 index d8d34d1e..00000000 --- a/lib/mutant/mutation/filter/code.rb +++ /dev/null @@ -1,49 +0,0 @@ -# encoding: utf-8 - -module Mutant - class Mutation - class Filter - # Mutation filter that filters on mutation codes - class Code < self - include Concord::Public.new(:code) - - # Test for match - # - # @param [Mutation] mutation - # - # @return [true] - # returns true if mutation code matches filter code - # - # @return [false] - # returns false otherwise - # - # @api private - # - def match?(mutation) - mutation.code.eql?(code) - end - - PATTERN = /\Acode:(?[a-f0-9]{1,6})\z/.freeze - - # Test if class handles string - # - # @param [String] notation - # - # @return [Filter] - # return code filter instance if notation matches pattern - # - # @return [nil] - # returns nil otherwise - # - # @api private - # - def self.handle(notation) - match = PATTERN.match(notation) - return unless match - new(match[:code]) - end - - end # Code - end # Filter - end # Mutation -end # Mutant