Skip to content

Commit d5983bb

Browse files
committed
Remove unnecessary Symbolics.
1 parent c049454 commit d5983bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/inputoutput.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@ function same_or_inner_namespace(u, var)
119119
nv = get_namespace(var)
120120
nu == nv || # namespaces are the same
121121
startswith(nv, nu) || # or nv starts with nu, i.e., nv is an inner namepsace to nu
122-
occursin('', string(Symbolics.getname(var))) &&
123-
!occursin('', string(Symbolics.getname(u))) # or u is top level but var is internal
122+
occursin('', string(getname(var))) &&
123+
!occursin('', string(getname(u))) # or u is top level but var is internal
124124
end
125125

126126
function inner_namespace(u, var)
127127
nu = get_namespace(u)
128128
nv = get_namespace(var)
129129
nu == nv && return false
130130
startswith(nv, nu) || # or nv starts with nu, i.e., nv is an inner namepsace to nu
131-
occursin('', string(Symbolics.getname(var))) &&
132-
!occursin('', string(Symbolics.getname(u))) # or u is top level but var is internal
131+
occursin('', string(getname(var))) &&
132+
!occursin('', string(getname(u))) # or u is top level but var is internal
133133
end
134134

135135
"""
@@ -138,7 +138,7 @@ end
138138
Return the namespace of a variable as a string. If the variable is not namespaced, the string is empty.
139139
"""
140140
function get_namespace(x)
141-
sname = string(Symbolics.getname(x))
141+
sname = string(getname(x))
142142
parts = split(sname, '')
143143
if length(parts) == 1
144144
return ""

0 commit comments

Comments
 (0)