about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiInput.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-29 07:08:23 +0000
committerEric Wong <e@80x24.org>2021-03-29 13:43:53 -0400
commit64233e6d87994bdda47bfaaf154d55ad8d7802c2 (patch)
tree78a1a3c765b94cde913297e66e4777bdc6948c48 /lib/PublicInbox/LeiInput.pm
parentf844e21ecc703f7a1285ba88edee490a8e8fe462 (diff)
downloadpublic-inbox-64233e6d87994bdda47bfaaf154d55ad8d7802c2.tar.gz
We can consistently open /dev/stdin correctly nowadays, so
drop the input_stdin and just use the normal ->path_to_fd
code path.
Diffstat (limited to 'lib/PublicInbox/LeiInput.pm')
-rw-r--r--lib/PublicInbox/LeiInput.pm8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm
index d916249a..93284e8b 100644
--- a/lib/PublicInbox/LeiInput.pm
+++ b/lib/PublicInbox/LeiInput.pm
@@ -46,12 +46,6 @@ error reading $name: $!
         }
 }
 
-sub input_stdin {
-        my ($self) = @_;
-        my $in = delete $self->{0} or return;
-        $self->input_fh($self->{lei}->{opt}->{'in-format'}, $in, '<stdin>');
-}
-
 sub input_path_url {
         my ($self, $input, @args) = @_;
         my $lei = $self->{lei};
@@ -94,7 +88,7 @@ sub prepare_inputs { # returns undef on error
                 @$inputs and return
                         $lei->fail("--stdin and @$inputs do not mix");
                 check_input_format($lei) or return;
-                $self->{0} = $lei->{0};
+                push @$inputs, '/dev/stdin';
         }
         my $net = $lei->{net}; # NetWriter may be created by l2m
         my $fmt = $lei->{opt}->{'in-format'};