Skip to content

Commit 63f4a40

Browse files
committed
Remove unnecessary method
1 parent 049ef29 commit 63f4a40

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/symbolic_dimensions.jl

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,7 @@ import .Constants: CONSTANT_SYMBOLS, CONSTANT_MAPPING, CONSTANT_VALUES
44

55
const SYMBOL_CONFLICTS = intersect(UNIT_SYMBOLS, CONSTANT_SYMBOLS)
66

7-
function disambiguate_symbol(s)
8-
if s in SYMBOL_CONFLICTS
9-
return Symbol(string(s) * "_constant")
10-
else
11-
return s
12-
end
13-
end
14-
function reambiguate_symbol(s)
15-
str_s = string(s)
16-
if endswith(str_s, "_constant")
17-
return Symbol(str_s[1:end-9])
18-
else
19-
return s
20-
end
21-
end
7+
disambiguate_symbol(s) = s in SYMBOL_CONFLICTS ? Symbol(string(s) * "_constant") : s
228

239
const INDEX_TYPE = UInt8
2410
# Prefer units over constants:

0 commit comments

Comments
 (0)