Skip to content

Commit

Permalink
remove constant
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed May 28, 2024
1 parent bed074e commit 65709d7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bin/ocran
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ module Ocran
end
end

SEPARATOR_PAT = /[#{Regexp.quote File::ALT_SEPARATOR.to_s}#{Regexp.quote File::SEPARATOR}]/
ABSOLUTE_PAT = /\A([A-Z]:)?#{SEPARATOR_PAT}/i

# Compares two paths for equality based on the case sensitivity of the
# Ruby execution environment's file system.
# If the file system is case-insensitive, it performs a case-insensitive
Expand Down Expand Up @@ -162,7 +159,6 @@ module Ocran
def exist?; File.exist?(@path); end
def file?; File.file?(@path); end
def directory?; File.directory?(@path); end
def absolute?; @path =~ ABSOLUTE_PAT; end
def dirname; Pathname.new(File.dirname(@path)); end
def basename; Pathname.new(File.basename(@path)); end

Expand Down

0 comments on commit 65709d7

Please sign in to comment.