diff --git a/gtsam/geometry/Point3.cpp b/gtsam/geometry/Point3.cpp index c9452efff..8aa339a89 100644 --- a/gtsam/geometry/Point3.cpp +++ b/gtsam/geometry/Point3.cpp @@ -29,10 +29,7 @@ bool Point3::equals(const Point3 &q, double tol) const { } void Point3::print(const string& s) const { - if (s.size() != 0) { - cout << s << " "; - } - cout << *this << endl; + cout << s << *this << endl; } /* ************************************************************************* */ diff --git a/gtsam/geometry/Unit3.cpp b/gtsam/geometry/Unit3.cpp index a2a7e6851..3d46b18b8 100755 --- a/gtsam/geometry/Unit3.cpp +++ b/gtsam/geometry/Unit3.cpp @@ -154,10 +154,7 @@ std::ostream& operator<<(std::ostream& os, const Unit3& pair) { /* ************************************************************************* */ void Unit3::print(const std::string& s) const { - if(s.size() != 0) { - cout << s << ":"; - } - cout << p_ << endl; + cout << s << ":" << p_ << endl; } /* ************************************************************************* */