common picture: remove unused variable.

This commit is contained in:
Hermet Park 2021-12-13 19:26:56 +09:00 committed by Hermet Park
parent 1d4db59a25
commit d3f3a50309
2 changed files with 1 additions and 7 deletions

View file

@ -26,7 +26,7 @@
/* External Class Implementation */ /* External Class Implementation */
/************************************************************************/ /************************************************************************/
Picture::Picture() : pImpl(new Impl(this)) Picture::Picture() : pImpl(new Impl)
{ {
Paint::pImpl->id = TVG_CLASS_ID_PICTURE; Paint::pImpl->id = TVG_CLASS_ID_PICTURE;
Paint::pImpl->method(new PaintMethod<Picture::Impl>(pImpl)); Paint::pImpl->method(new PaintMethod<Picture::Impl>(pImpl));

View file

@ -63,16 +63,10 @@ struct Picture::Impl
Paint* paint = nullptr; //vector picture uses Paint* paint = nullptr; //vector picture uses
Surface* surface = nullptr; //bitmap picture uses Surface* surface = nullptr; //bitmap picture uses
Picture* picture = nullptr;
void* rdata = nullptr; //engine data void* rdata = nullptr; //engine data
float w = 0, h = 0; float w = 0, h = 0;
bool resizing = false; bool resizing = false;
Impl(Picture* p) : picture(p)
{
}
~Impl() ~Impl()
{ {
if (paint) delete(paint); if (paint) delete(paint);