some refactor plus actual tests for selectors
[catagits/HTML-Zoom.git] / lib / HTML / Zoom / FilterStream.pm
index 641144f..e6d7a83 100644 (file)
@@ -11,22 +11,12 @@ sub new {
       _stream => $args->{stream},
       _match => $args->{match},
       _filter => $args->{filter},
+      _zconfig => $args->{zconfig},
     },
     $class
   );
 }
 
-sub peek {
-  my ($self) = @_;
-  if (exists $self->{_peeked}) {
-    return ($self->{_peeked});
-  }
-  if (my ($peeked) = $self->next) {
-    return ($self->{_peeked} = $peeked);
-  }
-  return;
-}
-
 sub next {
   my ($self) = @_;