Skip to content

Commit a51b972

Browse files
committed
fix: remove dead code
1 parent 90cfb81 commit a51b972

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

DifferentiationInterface/src/first_order/pushforward.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,7 @@ function _prepare_pushforward_aux(
310310
contexts::Vararg{Context,C};
311311
) where {F,C}
312312
_sig = signature(f!, y, backend, x, tx, contexts...; strict)
313-
dy = if y isa Number
314-
oneunit(y)
315-
else
316-
basis(y)
317-
end
313+
dy = basis(y)
318314
pullback_prep = prepare_pullback_nokwarg(strict, f!, y, backend, x, (dy,), contexts...)
319315
return PullbackPushforwardPrep(_sig, pullback_prep)
320316
end

0 commit comments

Comments
 (0)