From cc370aac0b59ef28ead43df22f26e84cd52f6f42 Mon Sep 17 00:00:00 2001
From: John Bintz <john@coswellproductions.com>
Date: Thu, 23 Jun 2011 09:34:41 -0400
Subject: [PATCH] remove unneeded method

---
 lib/jasmine/files_list.rb           |  4 ----
 spec/lib/jasmine/files_list_spec.rb | 26 --------------------------
 2 files changed, 30 deletions(-)

diff --git a/lib/jasmine/files_list.rb b/lib/jasmine/files_list.rb
index a55480d..d88124f 100644
--- a/lib/jasmine/files_list.rb
+++ b/lib/jasmine/files_list.rb
@@ -33,10 +33,6 @@ module Jasmine
       @spec_outside_scope
     end
 
-    def use_spec?(file)
-      spec_filter.empty? || spec_filter.include?(file)
-    end
-
     def filtered?
       files != filtered_files
     end
diff --git a/spec/lib/jasmine/files_list_spec.rb b/spec/lib/jasmine/files_list_spec.rb
index 2df980a..5ea8838 100644
--- a/spec/lib/jasmine/files_list_spec.rb
+++ b/spec/lib/jasmine/files_list_spec.rb
@@ -56,32 +56,6 @@ describe Jasmine::FilesList do
     end
   end
 
-  describe '#use_spec?' do
-    let(:spec_file) { 'my/spec.js' }
-
-    let(:files_list) { Jasmine::FilesList.new(:only => filter) }
-
-    context 'no filter provided' do
-      let(:filter) { [] }
-
-      it "should allow the spec" do
-        files_list.use_spec?(spec_file).should be_true
-      end
-    end
-
-    context 'filter provided' do
-      let(:filter) { [ spec_file ] }
-
-      it "should use the spec" do
-        files_list.use_spec?(spec_file).should be_true
-      end
-
-      it "should not use the spec" do
-        files_list.use_spec?('other/file').should be_false
-      end
-    end
-  end
-
   context 'with filtered specs' do
     let(:files_list) { Jasmine::FilesList.new(:only => filter, :config => config) }
     let(:spec_dir) { 'spec' }