From: Po Lu Date: Wed, 27 Apr 2022 08:07:39 +0000 (+0000) Subject: Remove some unnecessary code X-Git-Tag: emacs-29.0.90~1931^2~277 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d4e3e548f5519e98c2fc842daf73a6acac7faa70;p=emacs.git Remove some unnecessary code * src/haiku_support.cc (class EmacsView, AfterResize) (SetUpDoubleBuffering): Remove `cspace' field since it's always RGBA32. --- diff --git a/src/haiku_support.cc b/src/haiku_support.cc index b2edcd30998..6dea2d36206 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc @@ -1410,8 +1410,6 @@ public: BPoint tt_absl_pos; BMessage *wait_for_release_message = NULL; - color_space cspace; - EmacsView () : BView (BRect (0, 0, 0, 0), "Emacs", B_FOLLOW_NONE, B_WILL_DRAW) { @@ -1434,12 +1432,6 @@ public: grab_view_locker.Unlock (); } - void - AttachedToWindow (void) - { - cspace = B_RGBA32; - } - void MessageReceived (BMessage *msg) { @@ -1551,7 +1543,7 @@ public: #endif offscreen_draw_view->RemoveSelf (); delete offscreen_draw_bitmap_1; - offscreen_draw_bitmap_1 = new BBitmap (Frame (), cspace, 1); + offscreen_draw_bitmap_1 = new BBitmap (Frame (), B_RGBA32, 1); if (offscreen_draw_bitmap_1->InitCheck () != B_OK) gui_abort ("Offscreen draw bitmap initialization failed"); @@ -1659,7 +1651,7 @@ public: if (offscreen_draw_view) gui_abort ("Failed to lock offscreen view setting up double buffering"); - offscreen_draw_bitmap_1 = new BBitmap (Frame (), cspace, 1); + offscreen_draw_bitmap_1 = new BBitmap (Frame (), B_RGBA32, 1); if (offscreen_draw_bitmap_1->InitCheck () != B_OK) gui_abort ("Failed to init offscreen bitmap"); #ifdef USE_BE_CAIRO