From 350eabbb45bfd01d8f06ff380adf3f72f4520c89 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Sun, 1 Mar 2020 23:48:35 -0500 Subject: [PATCH] Revert "add readline(::AbstractCmd) (#34927)" (#34958) This reverts commit 570f6d9b2d3e72c4ce96d28b8f18f4c912b32d46. --- base/process.jl | 2 -- test/spawn.jl | 8 -------- 2 files changed, 10 deletions(-) diff --git a/base/process.jl b/base/process.jl index 6b8f50af637bf0..e664d7411de697 100644 --- a/base/process.jl +++ b/base/process.jl @@ -320,8 +320,6 @@ function eachline(cmd::AbstractCmd; keep::Bool=false) return EachLine(out, keep=keep, ondone=ondone)::EachLine end -readline(cmd::AbstractCmd; keep::Bool=false) = first(eachline(cmd, keep=keep)) - """ open(command, mode::AbstractString, stdio=devnull) diff --git a/test/spawn.jl b/test/spawn.jl index f9c49479d2f6d0..4e6eca4515c97c 100644 --- a/test/spawn.jl +++ b/test/spawn.jl @@ -670,14 +670,6 @@ end @test repr(Base.CmdRedirect(``, devnull, 1, true)) == "pipeline(``, stdout