Skip to content

Commit 630464c

Browse files
authored
Merge pull request #3030 from stan-dev/fix/hcubature-unused-warning
Fix some unused variable warnings
2 parents b21e184 + dce1482 commit 630464c

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

stan/math/prim/functor/hcubature.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -421,14 +421,6 @@ inline auto hcubature(const F& integrand, const ParsTuple& pars, const int dim,
421421
Eigen::Matrix<double, 5, 1>, Eigen::Matrix<double, 4, 1>>
422422
genz_malik;
423423

424-
auto gk_lambda = [&integrand, &pars](auto&& c) {
425-
return stan::math::apply(
426-
[](auto&& integrand, auto&& c, auto&&... args) {
427-
return integrand(c, args...);
428-
},
429-
pars, integrand, c);
430-
};
431-
432424
if (dim == 1) {
433425
std::tie(result, err)
434426
= internal::gauss_kronrod(integrand, a[0], b[0], pars);

stan/math/prim/prob/wiener5_lpdf.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ inline auto wiener5_grad_a(const T_y& y, const T_a& a, const T_v& v_value,
405405
const T_w& w_value, const T_sv& sv,
406406
T_err&& err = log(1e-12)) noexcept {
407407
const auto two_log_a = 2 * log(a);
408-
const auto log_y_asq = log(y) - two_log_a;
409408
const auto error_term
410409
= wiener5_compute_error_term(y, a, v_value, w_value, sv);
411410
const auto w = 1.0 - w_value;

0 commit comments

Comments
 (0)