Pathname: remove unused method starts_with?

This commit is contained in:
Adam Vandenberg 2011-06-13 14:37:22 -07:00
parent cee1003782
commit f409e4f22f

View File

@ -218,11 +218,6 @@ class Pathname
(dirname+readlink).exist?
end
def starts_with? prefix
prefix = prefix.to_s
self.to_s[0, prefix.length] == prefix
end
# perhaps confusingly, this Pathname object becomes the symlink pointing to
# the src paramter.
def make_relative_symlink src