Remove unused argument names from base getters for edits

This commit is contained in:
Thomas A. Christensen II 2022-12-30 14:47:50 -06:00
parent da2cbbd528
commit 22d460b15a
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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