diff --git a/src/edits/Deletion.jl b/src/edits/Deletion.jl index 5d9d956..09af797 100644 --- a/src/edits/Deletion.jl +++ b/src/edits/Deletion.jl @@ -26,7 +26,7 @@ function _refbases(d::Deletion, reference::S, pos::UInt) where {S<:BioSequence} end end -function _altbases(d::Deletion, reference::S, pos::UInt) where {S<:BioSequence} +function _altbases(::Deletion, reference::S, pos::UInt) where {S<:BioSequence} if pos == 1 return S([reference[pos + 1]]) else diff --git a/src/edits/Insertion.jl b/src/edits/Insertion.jl index bba1b25..abf9000 100644 --- a/src/edits/Insertion.jl +++ b/src/edits/Insertion.jl @@ -18,7 +18,7 @@ Base.length(x::Insertion) = length(x.seq) Base.:(==)(x::Insertion, y::Insertion) = x.seq == y.seq Base.hash(x::Insertion, h::UInt) = hash(Insertion, hash(x.seq, h)) -function _refbases(i::Insertion, reference::S, pos::UInt) where {S<:BioSequence} +function _refbases(::Insertion, reference::S, pos::UInt) where {S<:BioSequence} return S([reference[pos]]) end diff --git a/src/edits/Substitution.jl b/src/edits/Substitution.jl index 858b33a..6d1d2c0 100644 --- a/src/edits/Substitution.jl +++ b/src/edits/Substitution.jl @@ -12,10 +12,10 @@ Base.length(::Substitution) = 1 Base.:(==)(x::Substitution, y::Substitution) = x.x == y.x Base.hash(x::Substitution, h::UInt) = hash(Substitution, hash(x.x, h)) -function _refbases(s::Substitution, reference::S, pos::UInt) where {S<:BioSequence} +function _refbases(::Substitution, reference::S, pos::UInt) where {S<:BioSequence} return S([reference[pos]]) end -function _altbases(s::Substitution, reference::S, pos::UInt) where {S<:BioSequence} +function _altbases(s::Substitution, ::S, pos::UInt) where {S<:BioSequence} return S([s.x]) end