emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d4e3e548f5: Remove some unnecessary code


From: Po Lu
Subject: master d4e3e548f5: Remove some unnecessary code
Date: Wed, 27 Apr 2022 04:08:21 -0400 (EDT)

branch: master
commit d4e3e548f5519e98c2fc842daf73a6acac7faa70
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Remove some unnecessary code
    
    * src/haiku_support.cc (class EmacsView, AfterResize)
    (SetUpDoubleBuffering): Remove `cspace' field since it's always
    RGBA32.
---
 src/haiku_support.cc | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index b2edcd3099..6dea2d3620 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]