From: subhransu mohanty Date: Wed, 10 Jul 2019 08:15:35 +0000 (+0900) Subject: code cleanup X-Git-Tag: submit/tizen/20190719.015332~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c50a1d20d5e8b21faa2633ff8015e257da30e70e;p=platform%2Fcore%2Fuifw%2Flottie-player.git code cleanup --- diff --git a/example/lottie2gif.cpp b/example/lottie2gif.cpp index 939f63a..23d24a5 100644 --- a/example/lottie2gif.cpp +++ b/example/lottie2gif.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include diff --git a/example/vectortest.cpp b/example/vectortest.cpp index 8038b58..a43afe5 100644 --- a/example/vectortest.cpp +++ b/example/vectortest.cpp @@ -22,10 +22,5 @@ int main() { - VInterpolator ip({0.667, 1}, {0.333 , 0}); - for (float i = 0.0 ; i < 1.0 ; i+=0.05) { - std::cout< #include #include -#include V_BEGIN_NAMESPACE @@ -695,38 +694,5 @@ VPointF VMatrix::map(const VPointF &p) const } return {x, y}; } -static std::string type_helper(VMatrix::MatrixType t) -{ - switch (t) { - case VMatrix::MatrixType::None: - return "MatrixType::None"; - break; - case VMatrix::MatrixType::Translate: - return "MatrixType::Translate"; - break; - case VMatrix::MatrixType::Scale: - return "MatrixType::Scale"; - break; - case VMatrix::MatrixType::Rotate: - return "MatrixType::Rotate"; - break; - case VMatrix::MatrixType::Shear: - return "MatrixType::Shear"; - break; - case VMatrix::MatrixType::Project: - return "MatrixType::Project"; - break; - } - return ""; -} -std::ostream &operator<<(std::ostream &os, const VMatrix &o) -{ - os << "[Matrix: " - << "type =" << type_helper(o.type()) << ", Data : " << o.m11 << " " - << o.m12 << " " << o.m13 << " " << o.m21 << " " << o.m22 << " " << o.m23 - << " " << o.mtx << " " << o.mty << " " << o.m33 << " " - << "]" << std::endl; - return os; -} V_END_NAMESPACE diff --git a/src/vector/vmatrix.h b/src/vector/vmatrix.h index f762343..fe2f0ed 100644 --- a/src/vector/vmatrix.h +++ b/src/vector/vmatrix.h @@ -81,8 +81,6 @@ public: bool operator==(const VMatrix &) const; bool operator!=(const VMatrix &) const; bool fuzzyCompare(const VMatrix &) const; - friend std::ostream &operator<<(std::ostream &os, const VMatrix &o); - private: friend struct VSpanData; float m11{1}, m12{0}, m13{0};