Skip to content

Commit 72492e8

Browse files
committed
Remove deprecated code
1 parent fd3a28f commit 72492e8

File tree

4 files changed

+0
-232
lines changed

4 files changed

+0
-232
lines changed

src/MATLAB.jl

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ export mxarray, mxsparse, delete,
2222
mxstruct, mxstructarray, mxnfields, get_fieldname, get_field, set_field,
2323
jvalue, jarray, jscalar, jvector, jmatrix, jsparse, jstring, jdict
2424

25-
# mstatments
26-
export mstatement
27-
2825
# engine & matfile
2926
export MSession, MatFile,
3027
get_default_msession, restart_default_msession, close_default_msession,
@@ -46,7 +43,6 @@ include("init.jl") # initialize Refs
4643
include("mxbase.jl")
4744
include("mxarray.jl")
4845
include("matfile.jl")
49-
include("mstatements.jl")
5046
include("engine.jl")
5147
include("matstr.jl")
5248

@@ -172,28 +168,5 @@ end
172168
#
173169
###########################################################
174170

175-
function nfields(mx::MxArray)
176-
Base.depwarn("MATLAB.nfields is deprecated, use mxnfields instead.", :nfields)
177-
return mxfields(mx)
178-
end
179-
180-
@deprecate jvariable jvalue
181-
182-
function jvariable(mx::MxArray, ty::Type{AbstractString})
183-
Base.depwarn("jvariable(mx::MxArray,ty::Type{AbstractString}) is
184-
deprecated, use jvalue(mx::MxArray,ty::Type{String}) instead.
185-
We now default to more strict typing on String types", :jvariable)
186-
return jstring(mx)::String
187-
end
188-
189-
@deprecate duplicate(mx::MxArray) copy(mx::MxArray)
190-
191-
@deprecate mxempty() mxarray(Float64,0,0)
192-
193-
export @matlab
194-
macro matlab(ex)
195-
Base.depwarn("@matlab is deprecated, use custom string literal mat\"\" instead.", :matlab)
196-
:( MATLAB.eval_string($(mstatement(ex))) )
197-
end
198171

199172
end

src/mstatements.jl

Lines changed: 0 additions & 155 deletions
This file was deleted.

test/mstatements.jl

Lines changed: 0 additions & 49 deletions
This file was deleted.

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ using Test
44
include("engine.jl")
55
include("matfile.jl")
66
include("matstr.jl")
7-
include("mstatements.jl")
87
include("mxarray.jl")

0 commit comments

Comments
 (0)