mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 05:19:55 +00:00
Remove unused argument names from base getters for edits
This commit is contained in:
parent
da2cbbd528
commit
22d460b15a
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue