From 50342ec162f52dc305a223235068c5c43637d0e6 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 13 Dec 2021 19:26:56 +0900 Subject: [PATCH] common picture: remove unused variable. --- src/lib/tvgPicture.cpp | 2 +- src/lib/tvgPictureImpl.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib/tvgPicture.cpp b/src/lib/tvgPicture.cpp index 52f73cb..1d97763 100644 --- a/src/lib/tvgPicture.cpp +++ b/src/lib/tvgPicture.cpp @@ -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(pImpl)); diff --git a/src/lib/tvgPictureImpl.h b/src/lib/tvgPictureImpl.h index 794363f..2e27471 100644 --- a/src/lib/tvgPictureImpl.h +++ b/src/lib/tvgPictureImpl.h @@ -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); -- 2.7.4