From 22d460b15a8d366594e32a7c026ded20cfeb725c Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 30 Dec 2022 14:47:50 -0600 Subject: [PATCH] Remove unused argument names from base getters for edits --- src/edits/Deletion.jl | 2 +- src/edits/Insertion.jl | 2 +- src/edits/Substitution.jl | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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