Skip to content

Commit d122068

Browse files
authored
Remove unused argument names (#2199)
1 parent 6740036 commit d122068

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/Utilities/results.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,7 @@ end
500500
Return the scalar product between a vector `x` of the set `set` and a vector
501501
`y` of the dual of the set `s`.
502502
"""
503-
function set_dot(
504-
x::AbstractVector,
505-
y::AbstractVector,
506-
set::MOI.AbstractVectorSet,
507-
)
503+
function set_dot(x::AbstractVector, y::AbstractVector, ::MOI.AbstractVectorSet)
508504
return dot(x, y)
509505
end
510506

@@ -514,7 +510,7 @@ end
514510
Return the scalar product between a number `x` of the set `set` and a number
515511
`y` of the dual of the set `s`.
516512
"""
517-
set_dot(x, y, set::MOI.AbstractScalarSet) = dot(x, y)
513+
set_dot(x, y, ::MOI.AbstractScalarSet) = dot(x, y)
518514

519515
function triangle_dot(
520516
x::AbstractVector{S},
@@ -581,7 +577,7 @@ end
581577
Return the vector `b` such that for all vector `x` of the set `set`,
582578
`set_dot(b, x, set)` is equal to `dot(a, x)`.
583579
"""
584-
function dot_coefficients(a::AbstractVector, set::MOI.AbstractVectorSet)
580+
function dot_coefficients(a::AbstractVector, ::MOI.AbstractVectorSet)
585581
return a
586582
end
587583

src/sets.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ MathOptInterface.ConstraintIndex{MathOptInterface.VectorOfVariables, MathOptInte
880880
"""
881881
struct ExponentialCone <: AbstractVectorSet end
882882

883-
dual_set(s::ExponentialCone) = DualExponentialCone()
883+
dual_set(::ExponentialCone) = DualExponentialCone()
884884
dual_set_type(::Type{ExponentialCone}) = DualExponentialCone
885885

886886
dimension(::ExponentialCone) = 3
@@ -906,7 +906,7 @@ MathOptInterface.ConstraintIndex{MathOptInterface.VectorOfVariables, MathOptInte
906906
"""
907907
struct DualExponentialCone <: AbstractVectorSet end
908908

909-
dual_set(s::DualExponentialCone) = ExponentialCone()
909+
dual_set(::DualExponentialCone) = ExponentialCone()
910910
dual_set_type(::Type{DualExponentialCone}) = ExponentialCone
911911

912912
dimension(::DualExponentialCone) = 3

0 commit comments

Comments
 (0)