Skip to content

Commit 02c5f10

Browse files
committed
refactor: avoid creating separate function for standard overloads
1 parent 26ce63b commit 02c5f10

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/EvaluateDerivative.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ end
161161
)
162162
end
163163
end
164-
# TODO: Need to add the case for many operators
165164
end
166165

167166
"""

src/OperatorEnumConstruction.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ end
590590

591591
# Predefine the most common operators so the errors
592592
# are more informative
593-
function _overload_common_operators()
593+
let
594594
# Overload the operators in batches (so that we don't hit the warning
595595
# about too many operators)
596596
operators = OperatorEnum((
@@ -604,8 +604,6 @@ function _overload_common_operators()
604604
@extend_operators(operators, empty_old_operators = true, internal = true)
605605

606606
foreach(empty!, values(LATEST_OPERATOR_MAPPING))
607-
return nothing
608607
end
609-
_overload_common_operators()
610608

611609
end

0 commit comments

Comments
 (0)