Remove useless Fl_Cocoa_Window_Driver::todelete_ member

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2016-03-10 18:39:01 +00:00
parent 1d7ce6ad41
commit 9bffd04b3a
2 changed files with 0 additions and 3 deletions

View File

@ -50,7 +50,6 @@ struct Fl_Window_Driver::shape_data_type {
Fl_Image* shape_; ///< shape image
typedef struct CGImage* CGImageRef;
CGImageRef mask;
Fl_Bitmap *todelete_; ///< auxiliary bitmap image
};
class FL_EXPORT Fl_Cocoa_Window_Driver : public Fl_Window_Driver

View File

@ -50,7 +50,6 @@ Fl_Cocoa_Window_Driver::Fl_Cocoa_Window_Driver(Fl_Window *win)
Fl_Cocoa_Window_Driver::~Fl_Cocoa_Window_Driver()
{
if (shape_data_) {
if (shape_data_->todelete_) delete shape_data_->todelete_;
if (shape_data_->mask) {
CGImageRelease(shape_data_->mask);
}
@ -136,7 +135,6 @@ void Fl_Cocoa_Window_Driver::shape_alpha_(Fl_Image* img, int offset) {
void Fl_Cocoa_Window_Driver::shape(const Fl_Image* img) {
# if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
if (shape_data_) {
if (shape_data_->todelete_) { delete shape_data_->todelete_; }
if (shape_data_->mask) { CGImageRelease(shape_data_->mask); }
}
else {