mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
Remove unused meta_region_scale_double
Unused since 8b3c1f4b87
("cullable: Generalize actor coordinates space
translation for regions").
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3154>
This commit is contained in:
parent
65add94bfd
commit
3b847f28ad
@ -185,35 +185,6 @@ meta_region_iterator_next (MetaRegionIterator *iter)
|
||||
}
|
||||
}
|
||||
|
||||
cairo_region_t *
|
||||
meta_region_scale_double (cairo_region_t *region,
|
||||
double scale,
|
||||
MetaRoundingStrategy rounding_strategy)
|
||||
{
|
||||
int n_rects, i;
|
||||
cairo_rectangle_int_t *rects;
|
||||
cairo_region_t *scaled_region;
|
||||
|
||||
g_return_val_if_fail (scale > 0.0, NULL);
|
||||
|
||||
if (G_APPROX_VALUE (scale, 1.f, FLT_EPSILON))
|
||||
return cairo_region_copy (region);
|
||||
|
||||
n_rects = cairo_region_num_rectangles (region);
|
||||
META_REGION_CREATE_RECTANGLE_ARRAY_SCOPED (n_rects, rects);
|
||||
for (i = 0; i < n_rects; i++)
|
||||
{
|
||||
cairo_region_get_rectangle (region, i, &rects[i]);
|
||||
|
||||
meta_rectangle_scale_double (&rects[i], scale, rounding_strategy,
|
||||
&rects[i]);
|
||||
}
|
||||
|
||||
scaled_region = cairo_region_create_rectangles (rects, n_rects);
|
||||
|
||||
return scaled_region;
|
||||
}
|
||||
|
||||
cairo_region_t *
|
||||
meta_region_scale (cairo_region_t *region, int scale)
|
||||
{
|
||||
|
@ -96,10 +96,6 @@ void meta_region_iterator_next (MetaRegionIterator *iter);
|
||||
cairo_region_t * meta_region_scale (cairo_region_t *region,
|
||||
int scale);
|
||||
|
||||
cairo_region_t * meta_region_scale_double (cairo_region_t *region,
|
||||
double scale,
|
||||
MetaRoundingStrategy rounding_strategy);
|
||||
|
||||
cairo_region_t * meta_make_border_region (cairo_region_t *region,
|
||||
int x_amount,
|
||||
int y_amount,
|
||||
|
Loading…
Reference in New Issue
Block a user