compositor: Remove unused weston_surface_to_buffer function

The function 'weston_surface_to_buffer' is unused by compositor and
clients inside weston, so it should be safe to remove this function

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Chris Michael 2015-11-30 10:23:04 -05:00 committed by Derek Foreman
parent e2e15acc06
commit 6207b6af09
2 changed files with 0 additions and 16 deletions

View File

@ -919,19 +919,6 @@ weston_surface_to_buffer_float(struct weston_surface *surface,
*bx, *by, bx, by);
}
WL_EXPORT void
weston_surface_to_buffer(struct weston_surface *surface,
int sx, int sy, int *bx, int *by)
{
float bxf, byf;
weston_surface_to_buffer_float(surface,
sx, sy, &bxf, &byf);
*bx = floorf(bxf);
*by = floorf(byf);
}
WL_EXPORT pixman_box32_t
weston_surface_to_buffer_rect(struct weston_surface *surface,
pixman_box32_t rect)

View File

@ -1101,9 +1101,6 @@ weston_view_from_global_fixed(struct weston_view *view,
void
weston_surface_to_buffer_float(struct weston_surface *surface,
float x, float y, float *bx, float *by);
void
weston_surface_to_buffer(struct weston_surface *surface,
int sx, int sy, int *bx, int *by);
pixman_box32_t
weston_surface_to_buffer_rect(struct weston_surface *surface,
pixman_box32_t rect);