diff --git a/gtsam/nonlinear/Expression-inl.h b/gtsam/nonlinear/Expression-inl.h index 815f9c3da..70a872d15 100644 --- a/gtsam/nonlinear/Expression-inl.h +++ b/gtsam/nonlinear/Expression-inl.h @@ -205,7 +205,6 @@ T Expression::valueAndJacobianMap(const Values& values, internal::ExecutionTrace trace; T value(this->traceExecution(values, trace, traceStorage)); - GTSAM_PRINT(trace); trace.startReverseAD1(jacobians); #ifdef _MSC_VER diff --git a/tests/testExpressionFactor.cpp b/tests/testExpressionFactor.cpp index 301da21e5..440e67017 100644 --- a/tests/testExpressionFactor.cpp +++ b/tests/testExpressionFactor.cpp @@ -536,7 +536,6 @@ TEST(Expression, testMultipleCompositions) { // Leaf, key = 1 // Leaf, key = 2 Expression sum1_(Combine(1, 2), v1_, v2_); - GTSAM_PRINT(sum1_); EXPECT(sum1_.keys() == list_of(1)(2)); EXPECT_CORRECT_EXPRESSION_JACOBIANS(sum1_, values, fd_step, tolerance); @@ -546,7 +545,6 @@ TEST(Expression, testMultipleCompositions) { // Leaf, key = 2 // Leaf, key = 1 Expression sum2_(Combine(3, 4), sum1_, v1_); - GTSAM_PRINT(sum2_); EXPECT(sum2_.keys() == list_of(1)(2)); EXPECT_CORRECT_EXPRESSION_JACOBIANS(sum2_, values, fd_step, tolerance); @@ -560,7 +558,6 @@ TEST(Expression, testMultipleCompositions) { // Leaf, key = 1 // Leaf, key = 2 Expression sum3_(Combine(5, 6), sum1_, sum2_); - GTSAM_PRINT(sum3_); EXPECT(sum3_.keys() == list_of(1)(2)); EXPECT_CORRECT_EXPRESSION_JACOBIANS(sum3_, values, fd_step, tolerance); }