Skip to content

Commit 731430a

Browse files
authored
Stop exporting deprecated symbols (#1724)
1 parent 9ef6efe commit 731430a

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/DeprecatedTest/config.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct Config{T<:Real}
8585
Config(; kwargs...) = Config{Float64}(; kwargs...)
8686
end
8787

88-
@deprecate TestConfig Config
88+
@deprecate TestConfig Config false
8989

9090
"""
9191
@moitestset setname subsets

src/Utilities/copy.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file contains default implementations for the `MOI.copy_to` function that
22
# can be used by a model.
33

4-
@deprecate automatic_copy_to default_copy_to
5-
@deprecate supports_default_copy_to MOI.supports_incremental_interface
4+
@deprecate automatic_copy_to default_copy_to false
5+
@deprecate supports_default_copy_to MOI.supports_incremental_interface false
66

77
include("copy/index_map.jl")
88

src/attributes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ and `S` is a set type indicating that the attribute `NumberOfConstraints{F,S}()`
10021002
has value greater than zero.
10031003
"""
10041004
struct ListOfConstraintTypesPresent <: AbstractModelAttribute end
1005-
@deprecate ListOfConstraints ListOfConstraintTypesPresent
1005+
@deprecate ListOfConstraints ListOfConstraintTypesPresent false
10061006

10071007
"""
10081008
ObjectiveFunction{F<:AbstractScalarFunction}()
@@ -1111,7 +1111,7 @@ struct SolveTimeSec <: AbstractModelAttribute end
11111111

11121112
attribute_value_type(::SolveTimeSec) = Float64
11131113

1114-
@deprecate SolveTime SolveTimeSec
1114+
@deprecate SolveTime SolveTimeSec false
11151115

11161116
"""
11171117
SimplexIterations()

src/deprecate.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,14 @@ function SingleVariable(x::VariableIndex)
8484
return x
8585
end
8686

87-
@deprecate(SingleVariableConstraintNameError, VariableIndexConstraintNameError)
87+
@deprecate(
88+
SingleVariableConstraintNameError,
89+
VariableIndexConstraintNameError,
90+
false,
91+
)
8892

8993
@deprecate(
9094
SettingSingleVariableFunctionNotAllowed,
9195
SettingVariableIndexNotAllowed,
96+
false,
9297
)

0 commit comments

Comments
 (0)