Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove superfluous regenerating of dynamic states when changing filter.

  • Loading branch information...
commit 28a5aaacbc0cfac7d07a2cae18a9e3b20e3b823d 1 parent 590920c
Martijn van Beers authored
View
10 lib/POE/Wheel/FollowTail.pm
@@ -435,16 +435,6 @@ sub event {
carp "ignoring unknown FollowTail parameter '$name'";
}
}
-
- if ($self->[SELF_FOLLOW_MODE] & MODE_TIMER) {
- $self->_define_timer_states();
- }
- elsif ($self->[SELF_FOLLOW_MODE] & MODE_SELECT) {
- $self->_define_select_states();
- }
- else {
- die;
- }
}
#------------------------------------------------------------------------------
View
2  lib/POE/Wheel/ListenAccept.pm
@@ -73,8 +73,6 @@ sub event {
carp "ignoring unknown ListenAccept parameter '$name'";
}
}
-
- $self->_define_accept_state();
}
#------------------------------------------------------------------------------
View
2  lib/POE/Wheel/ReadWrite.pm
@@ -491,7 +491,6 @@ sub set_filter {
my $buf = $self->[FILTER_INPUT]->get_pending();
$self->[FILTER_INPUT] = $self->[FILTER_OUTPUT] = $new_filter;
- $self->_define_read_state();
$self->_transfer_input_buffer($buf);
}
@@ -501,7 +500,6 @@ sub set_input_filter {
my $buf = $self->[FILTER_INPUT]->get_pending();
$self->[FILTER_INPUT] = $new_filter;
- $self->_define_read_state();
$self->_transfer_input_buffer($buf);
}
View
6 lib/POE/Wheel/Run.pm
@@ -845,10 +845,6 @@ sub event {
carp "ignoring unknown Run parameter '$name'";
}
}
-
- $self->_define_stdin_flusher() if defined $redefine_stdin;
- $self->_define_stdout_reader() if defined $redefine_stdout;
- $self->_define_stderr_reader() if defined $redefine_stderr;
}
#------------------------------------------------------------------------------
@@ -1049,7 +1045,6 @@ sub set_stdout_filter {
my $buf = $self->[FILTER_STDOUT]->get_pending();
$self->[FILTER_STDOUT] = $new_filter;
- $self->_define_stdout_reader();
$self->_transfer_stdout_buffer($buf);
}
@@ -1059,7 +1054,6 @@ sub set_stderr_filter {
my $buf = $self->[FILTER_STDERR]->get_pending();
$self->[FILTER_STDERR] = $new_filter;
- $self->_define_stderr_reader();
$self->_transfer_stderr_buffer($buf);
}
Please sign in to comment.
Something went wrong with that request. Please try again.