diff options
author | Eric Wong <e@yhbt.net> | 2020-07-17 06:31:49 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-17 20:56:49 +0000 |
commit | 26b19adf05338a0842d914a10699842620ab8f90 (patch) | |
tree | c3cea610b2d92eb5f39d790d4778b37bbfca0191 | |
parent | 46e4fa33863f136e8f36ffcc65231c2bc7de11e1 (diff) | |
download | public-inbox-26b19adf05338a0842d914a10699842620ab8f90.tar.gz |
We only support Unix-like platforms where binmode (":raw") is the default anyways, and v5.10 semantics means it won't do unicode_strings (unlike v5.12). So save some lines of code.
-rw-r--r-- | lib/PublicInbox/Import.pm | 2 | ||||
-rw-r--r-- | lib/PublicInbox/SearchIdxShard.pm | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index fb813159..b61d4b31 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -73,8 +73,6 @@ sub gfi_start { $self->{out} = $out_w; $self->{pid} = $pid; $self->{nchg} = 0; - binmode $out_w, ':raw' or die "binmode :raw failed: $!"; - binmode $in_r, ':raw' or die "binmode :raw failed: $!"; ($in_r, $out_w); } diff --git a/lib/PublicInbox/SearchIdxShard.pm b/lib/PublicInbox/SearchIdxShard.pm index baf7352a..b51d148b 100644 --- a/lib/PublicInbox/SearchIdxShard.pm +++ b/lib/PublicInbox/SearchIdxShard.pm @@ -26,8 +26,6 @@ sub spawn_worker { my ($self, $v2w, $shard) = @_; my ($r, $w); pipe($r, $w) or die "pipe failed: $!\n"; - binmode $r, ':raw'; - binmode $w, ':raw'; $w->autoflush(1); my $pid = fork; defined $pid or die "fork failed: $!\n"; |