summaryrefslogtreecommitdiff
path: root/lib/webrick/compat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webrick/compat.rb')
-rw-r--r--lib/webrick/compat.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/webrick/compat.rb b/lib/webrick/compat.rb
index a972204ff1..ad7760b640 100644
--- a/lib/webrick/compat.rb
+++ b/lib/webrick/compat.rb
@@ -13,18 +13,3 @@ module Errno
class ECONNRESET < SystemCallError; end
class ECONNABORTED < SystemCallError; end
end
-
-unless File.respond_to?(:fnmatch)
- def File.fnmatch(pat, str)
- case pat[0]
- when nil
- not str[0]
- when ?*
- fnmatch(pat[1..-1], str) || str[0] && fnmatch(pat, str[1..-1])
- when ??
- str[0] && fnmatch(pat[1..-1], str[1..-1])
- else
- pat[0] == str[0] && fnmatch(pat[1..-1], str[1..-1])
- end
- end
-end