Skip to content

Commit

Permalink
remove repetition of show from the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot committed Jan 31, 2021
1 parent 6e47693 commit a6eedb3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Stopping.jl
Expand Up @@ -185,24 +185,6 @@ function show(io :: IO, stp :: AbstractStopping)
end
end

import Base.show
function show(io :: IO, stp :: AbstractStopping)
println(io, typeof(stp))
println(io, "with the current state $(typeof(stp.current_state)) and metadata $(typeof(stp.meta)).")
if stp.main_stp != nothing
println(io, "it has a main_stp $(typeof(stp.main_stp))")
end
if stp.listofstates != nothing
nmax = stp.listofstates.n == -1 ? Inf : stp.listofstates.n
println(io, "it handles a list of states $(typeof(stp.listofstates)) of maximum length $(nmax)")
end
try
print("Problem is ")
show(io, stp.pb)
catch
end
end

# Stopping
include("Stopping/GenericStoppingmod.jl")
include("Stopping/LineSearchStoppingmod.jl")
Expand Down

0 comments on commit a6eedb3

Please sign in to comment.