Skip to content

Commit 2b85ba3

Browse files
Update ext/ModelingToolkitUnitfulExt.jl
1 parent 4b3c91b commit 2b85ba3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ext/ModelingToolkitUnitfulExt.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,5 @@ const unitless = Unitful.unit(1)
9898

9999
get_unit(x::Unitful.Quantity) = screen_unit(Unitful.unit(x))
100100

101-
function get_unit(op, args) # Fallback
102-
result = op(1 .* get_unit.(args)...)
103-
try
104-
Unitful.unit(result)
105-
catch
106-
throw(ValidationError("Unable to get unit for operation $op with arguments $args."))
107-
end
108-
end
109101

110102
end # module UnitfulUnitCheck

0 commit comments

Comments
 (0)