Skip to content

Commit 97d59fe

Browse files
authored
eliminate function used only from one place (#18)
1 parent 390771f commit 97d59fe

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/EnforcedTypeSignatureCallables.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,10 @@ const CallableWithTypeSignature = CallableWithReturnType{
8888
Callable,
8989
}
9090

91-
function return_type_enforcer(::Type{Return}) where {Return}
92-
Base.Fix2(typeassert, Return)
93-
end
94-
9591
function typed_callable_no_special_casing(callable::Callable, ::Type{Return}) where {
9692
Return, Callable,
9793
}
98-
ret = return_type_enforcer(Return)
94+
ret = Base.Fix2(typeassert, Return)
9995
ret callable
10096
end
10197

0 commit comments

Comments
 (0)