Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
the code name is not important anymore
  • Loading branch information
kraih committed Mar 6, 2016
1 parent e535cbc commit 136a138
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop.pm
Expand Up @@ -74,7 +74,7 @@ sub delay {

sub is_running { _instance(shift)->reactor->is_running }

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
sub multi_accept {
deprecated 'Mojo::IOLoop::multi_accept is DEPRECATED';
@_ > 1 ? $_[0] : undef;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Server.pm
Expand Up @@ -102,7 +102,7 @@ sub listen {
$tls->{SSL_version} = $args->{tls_version} if $args->{tls_version};
}

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
sub multi_accept {
deprecated 'Mojo::IOLoop::Server::multi_accept is DEPRECATED';
@_ > 1 ? $_[0] : undef;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Log.pm
Expand Up @@ -23,7 +23,7 @@ has 'path';
# Supported log levels
my %LEVEL = (debug => 1, info => 2, warn => 3, error => 4, fatal => 5);

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
for my $name (qw(debug error info warn)) {
monkey_patch __PACKAGE__, "is_$name", sub {
deprecated "Mojo::Log::$name is DEPRECATED in favor of Mojo::Log::is_level";
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -26,7 +26,7 @@ sub DESTROY {
$loop->remove($_) for @{$self->acceptors};
}

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
sub multi_accept {
deprecated 'Mojo::Server::Daemon::multi_accept is DEPRECATED';
@_ > 1 ? $_[0] : undef;
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojo/Template.pm
Expand Up @@ -23,19 +23,19 @@ has tag_start => '<%';
has tag_end => '%>';
has tree => sub { [] };

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
sub build {
deprecated 'Mojo::Template::build is DEPRECATED';
shift->_build(@_);
}

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
sub compile {
deprecated 'Mojo::Template::compile is DEPRECATED';
shift->_compile(@_);
}

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
sub interpret {
deprecated 'Mojo::Template::compile is DEPRECATED'
. ' in favor of Mojo::Template::run';
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Transaction/WebSocket.pm
Expand Up @@ -12,7 +12,7 @@ use Mojo::WebSocket
has [qw(compressed established handshake masked)];
has max_websocket_size => sub { $ENV{MOJO_MAX_WEBSOCKET_SIZE} || 262144 };

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
sub build_frame {
deprecated 'Mojo::Transaction::WebSocket::build_frame is DEPRECATED';
Mojo::WebSocket::build_frame(shift->masked, @_);
Expand Down Expand Up @@ -73,7 +73,7 @@ sub kept_alive { shift->handshake->kept_alive }
sub local_address { shift->handshake->local_address }
sub local_port { shift->handshake->local_port }

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
sub parse_frame {
deprecated 'Mojo::Transaction::WebSocket::parse_frame is DEPRECATED';
Mojo::WebSocket::parse_frame($_[1], $_[0]->max_websocket_size);
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Util.pm
Expand Up @@ -61,7 +61,7 @@ our @EXPORT_OK = (
qw(unquote url_escape url_unescape xml_escape xor_encode)
);

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
push @EXPORT_OK, 'xss_escape';

# Aliases
Expand Down Expand Up @@ -351,7 +351,7 @@ sub xor_encode {
return $output .= $buffer ^ substr($key, 0, length $buffer, '');
}

# DEPRECATED in Clinking Beer Mugs!
# DEPRECATED!
sub xss_escape {
deprecated
'Mojo::Util::xss_escape is DEPRECATED in favor of Mojo::Util::xml_escape';
Expand Down

0 comments on commit 136a138

Please sign in to comment.