Skip to content

Commit

Permalink
Remove similar method
Browse files Browse the repository at this point in the history
  • Loading branch information
nHackel committed Aug 22, 2023
1 parent d7daf09 commit bc048c1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 41 deletions.
5 changes: 0 additions & 5 deletions src/AlgorithmInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,5 @@ function process(algo::AbstractImageReconstructionAlgorithm, data, params::Vecto
return val
end

export similar
similar(algo::AbstractImageReconstructionAlgorithm, data) = error("$(typeof(algo)) must implement similar")
similar(algo::AbstractImageReconstructionAlgorithm, data, param::AbstractImageReconstructionParameter) = similar(typeof(algo), data, param)
similar(algoT::Type{T}, data, param::AbstractImageReconstructionParameter) where {T<:AbstractImageReconstructionAlgorithm} = deepcopy(param)

export parameter
parameter(algo::AbstractImageReconstructionAlgorithm) = error("$(typeof(algo)) must implement parameter")
3 changes: 1 addition & 2 deletions src/MiscAlgorithms/MiscAlgorithms.jl
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include("RuntimeAlgorithms.jl")
include("SimilarAlgorithm.jl")
include("RuntimeAlgorithms.jl")
34 changes: 0 additions & 34 deletions src/MiscAlgorithms/SimilarAlgorithm.jl

This file was deleted.

0 comments on commit bc048c1

Please sign in to comment.