Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
10 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,9 +66,6 @@ our @EXPORT_OK = ( | |
qw(unindent unquote url_escape url_unescape xml_escape xor_encode) | ||
); | ||
|
||
# DEPRECATED! | ||
push @EXPORT_OK, qw(files slurp spurt); | ||
|
||
# Aliases | ||
monkey_patch(__PACKAGE__, 'b64_decode', \&decode_base64); | ||
monkey_patch(__PACKAGE__, 'b64_encode', \&encode_base64); | ||
|
@@ -142,14 +139,6 @@ sub extract_usage { | |
return unindent($output); | ||
} | ||
|
||
# DEPRECATED! | ||
sub files { | ||
deprecated | ||
'Mojo::Util::files is DEPRECATED in favor of Mojo::File::list_tree'; | ||
require Mojo::File; | ||
Mojo::File->new(shift)->list_tree(@_)->map('to_string')->each; | ||
} | ||
|
||
sub getopt { | ||
my ($array, $opts) = map { ref $_[0] eq 'ARRAY' ? shift : $_ } \@ARGV, []; | ||
my $save = Getopt::Long::Configure(qw(default no_auto_abbrev no_ignore_case), | ||
|
@@ -259,23 +248,9 @@ sub secure_compare { | |
return $r == 0; | ||
} | ||
|
||
# DEPRECATED! | ||
sub slurp { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jberger
Member
|
||
deprecated 'Mojo::Util::slurp is DEPRECATED in favor of Mojo::File::slurp'; | ||
require Mojo::File; | ||
Mojo::File->new(shift)->slurp; | ||
} | ||
|
||
sub split_cookie_header { _header(shift, 1) } | ||
sub split_header { _header(shift, 0) } | ||
|
||
# DEPRECATED! | ||
sub spurt { | ||
deprecated 'Mojo::Util::spurt is DEPRECATED in favor of Mojo::File::spurt'; | ||
require Mojo::File; | ||
Mojo::File->new($_[1])->spurt($_[0]) and return $_[0]; | ||
} | ||
|
||
sub tablify { | ||
my $rows = shift; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Maybe it's better to leave that ? Removing this method broke backward compatibility, at least one good module as Mojolicious::Plugin::Webtail will fail to install