Skip to content

Commit eb92b73

Browse files
committed
minor code cleanup
1 parent b752e0a commit eb92b73

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

stan/math/prim/prob/gamma_lccdf.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ inline return_type_t<T_y, T_shape, T_inv_scale> gamma_lccdf(
157157
}
158158
P += log_Qn;
159159

160-
constexpr bool need_y_beta_deriv
161-
= !is_constant_all<T_y, T_inv_scale>::value;
162160
if constexpr (is_autodiff_v<T_y> || is_autodiff_v<T_inv_scale>) {
163161
const T_partials_return log_y = log(y_dbl);
164162
const T_partials_return alpha_minus_one = fma(alpha_dbl, log_y, -log_y);

0 commit comments

Comments
 (0)