common picture: remove unused variable.
authorHermet Park <chuneon.park@samsung.com>
Mon, 13 Dec 2021 10:26:56 +0000 (19:26 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 14 Dec 2021 07:49:10 +0000 (23:49 -0800)
src/lib/tvgPicture.cpp
src/lib/tvgPictureImpl.h

index 52f73cbbe87274003a63261c0d3a59ae1443553b..1d9776363c0e590705956d20139c8af66eed0d41 100644 (file)
@@ -26,7 +26,7 @@
 /* External Class Implementation                                        */
 /************************************************************************/
 
-Picture::Picture() : pImpl(new Impl(this))
+Picture::Picture() : pImpl(new Impl)
 {
     Paint::pImpl->id = TVG_CLASS_ID_PICTURE;
     Paint::pImpl->method(new PaintMethod<Picture::Impl>(pImpl));
index 794363fefa8d628a9c245b13c3a09dea3aa079b0..2e274714870049c149c67f470685583651baaec4 100644 (file)
@@ -63,16 +63,10 @@ struct Picture::Impl
 
     Paint* paint = nullptr;           //vector picture uses
     Surface* surface = nullptr;       //bitmap picture uses
-
-    Picture* picture = nullptr;
     void* rdata = nullptr;            //engine data
     float w = 0, h = 0;
     bool resizing = false;
 
-    Impl(Picture* p) : picture(p)
-    {
-    }
-
     ~Impl()
     {
         if (paint) delete(paint);