]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[frame-buffer] Drop ply_frame_buffer_area_union
authorRay Strode <rstrode@redhat.com>
Wed, 5 Aug 2009 22:10:37 +0000 (18:10 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 5 Aug 2009 22:10:37 +0000 (18:10 -0400)
It's no longer used.  We can always pull it out of history if we
need it again.

src/libply/ply-frame-buffer.c

index cb72b0729328ff9b7b0b0ee5f3702a6a4e23fff0..a1e4fcdade8c64ac50314c7c9dbb0a270f9cc211 100644 (file)
@@ -487,36 +487,6 @@ ply_frame_buffer_fill_area_with_pixel_value (ply_frame_buffer_t     *buffer,
     }
 }
 
-static void
-ply_frame_buffer_area_union (ply_frame_buffer_area_t *area1,
-                             ply_frame_buffer_area_t *area2,
-                             ply_frame_buffer_area_t *result)
-{
-  unsigned long x1, y1, x2, y2;
-
-  if (area1->width == 0)
-    {
-      *result = *area2;
-      return;
-    }
-
-  if (area2->width == 0)
-    {
-      *result = *area1;
-      return;
-    }
-
-  x1 = area1->x + area1->width;
-  y1 = area1->y + area1->height;
-  x2 = area2->x + area2->width;
-  y2 = area2->y + area2->height;
-
-  result->x = MIN(area1->x, area2->x);
-  result->y = MIN(area1->y, area2->y);
-  result->width = MAX(x1, x2) - result->x;
-  result->height = MAX(y1, y2) - result->y;
-}
-
 static void
 integrate_area_with_flush_area (ply_frame_buffer_t      *buffer,
                                 ply_list_node_t         *node,