@@ -1090,7 +1090,7 @@ function _apply_to_variables(f::F, ex) where {F}
10901090 iscall (ex) || return ex
10911091 maketerm (typeof (ex), _apply_to_variables (f, operation (ex)),
10921092 map (Base. Fix1 (_apply_to_variables, f), arguments (ex)),
1093- symtype (ex), metadata (ex))
1093+ metadata (ex))
10941094end
10951095
10961096abstract type SymScope end
@@ -1102,7 +1102,7 @@ function LocalScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}})
11021102 args = arguments (sym)
11031103 a1 = setmetadata (args[1 ], SymScope, LocalScope ())
11041104 maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ],
1105- symtype (sym), metadata (sym))
1105+ metadata (sym))
11061106 else
11071107 setmetadata (sym, SymScope, LocalScope ())
11081108 end
@@ -1119,7 +1119,7 @@ function ParentScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}})
11191119 a1 = setmetadata (args[1 ], SymScope,
11201120 ParentScope (getmetadata (value (args[1 ]), SymScope, LocalScope ())))
11211121 maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ],
1122- symtype (sym), metadata (sym))
1122+ metadata (sym))
11231123 else
11241124 setmetadata (sym, SymScope,
11251125 ParentScope (getmetadata (value (sym), SymScope, LocalScope ())))
@@ -1138,7 +1138,7 @@ function DelayParentScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}}, N)
11381138 a1 = setmetadata (args[1 ], SymScope,
11391139 DelayParentScope (getmetadata (value (args[1 ]), SymScope, LocalScope ()), N))
11401140 maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ],
1141- symtype (sym), metadata (sym))
1141+ metadata (sym))
11421142 else
11431143 setmetadata (sym, SymScope,
11441144 DelayParentScope (getmetadata (value (sym), SymScope, LocalScope ()), N))
@@ -1154,7 +1154,7 @@ function GlobalScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}})
11541154 args = arguments (sym)
11551155 a1 = setmetadata (args[1 ], SymScope, GlobalScope ())
11561156 maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ],
1157- symtype (sym), metadata (sym))
1157+ metadata (sym))
11581158 else
11591159 setmetadata (sym, SymScope, GlobalScope ())
11601160 end
@@ -1172,13 +1172,13 @@ function renamespace(sys, x)
11721172 if iscall (x) && operation (x) isa Operator
11731173 return maketerm (typeof (x), operation (x),
11741174 Any[renamespace (sys, only (arguments (x)))],
1175- symtype (x), metadata (x)):: T
1175+ metadata (x)):: T
11761176 end
11771177 if iscall (x) && operation (x) === getindex
11781178 args = arguments (x)
11791179 return maketerm (
11801180 typeof (x), operation (x), vcat (renamespace (sys, args[1 ]), args[2 : end ]),
1181- symtype (x), metadata (x)):: T
1181+ metadata (x)):: T
11821182 end
11831183 let scope = getmetadata (x, SymScope, LocalScope ())
11841184 if scope isa LocalScope
@@ -1263,13 +1263,12 @@ function namespace_expr(
12631263 # metadata from the rescoped variable
12641264 rescoped = renamespace (n, O)
12651265 maketerm (typeof (rescoped), operation (rescoped), renamed,
1266- symtype (rescoped),
12671266 metadata (rescoped))
12681267 elseif Symbolics. isarraysymbolic (O)
12691268 # promote_symtype doesn't work for array symbolics
1270- maketerm (typeof (O), operation (O), renamed, symtype (O), metadata (O))
1269+ maketerm (typeof (O), operation (O), renamed, metadata (O))
12711270 else
1272- maketerm (typeof (O), operation (O), renamed, symtype (O), metadata (O))
1271+ maketerm (typeof (O), operation (O), renamed, metadata (O))
12731272 end
12741273 elseif isvariable (O)
12751274 renamespace (n, O)
0 commit comments