Skip to content

Commit 39ea750

Browse files
committed
Merge branch 'fix/issue-354-dimension-warnings' of https://www.github.com/arnavk23/OptimizationProblems.jl into fix/issue-354-dimension-warnings
2 parents b5a7f23 + be0c0e1 commit 39ea750

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/OptimizationProblems.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,4 @@ for name in cols_names, i = 1:number_of_problems
104104
meta[!, name][i] = eval(Meta.parse("$(split(files[i], ".")[1])_meta"))[name]
105105
end
106106

107-
_adjust_nvar_warn_message(problem_name, n_orig, n) =
108-
string(problem_name, ": number of variables adjusted from ", n_orig, " to ", n)
109-
110-
"""
111-
@adjust_nvar_warn(problem_name, n_orig, n)
112-
113-
Issue a warning if the number of variables was adjusted, showing both original and adjusted values.
114-
"""
115-
macro adjust_nvar_warn(problem_name, n_orig, n)
116-
return quote
117-
local _n_orig = $(esc(n_orig))
118-
local _n = $(esc(n))
119-
(_n == _n_orig) || @warn(_adjust_nvar_warn_message($(esc(problem_name)), _n_orig, _n))
120-
end
121-
end
122-
123107
end # module

0 commit comments

Comments
 (0)