diff --git a/gtsam/nonlinear/FunctorizedFactor.h b/gtsam/nonlinear/FunctorizedFactor.h index a83198967..5351b126f 100644 --- a/gtsam/nonlinear/FunctorizedFactor.h +++ b/gtsam/nonlinear/FunctorizedFactor.h @@ -109,7 +109,6 @@ class GTSAM_EXPORT FunctorizedFactor : public NoiseModelFactor1 { virtual bool equals(const NonlinearFactor &other, double tol = 1e-9) const { const FunctorizedFactor *e = dynamic_cast *>(&other); - const bool base = Base::equals(*e, tol); return e && Base::equals(other, tol) && traits::Equals(this->measured_, e->measured_, tol); }