From fc8fd35b8678b347a5a32d3660c028b3c05a72ab Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 24 Sep 2025 15:08:11 +0200 Subject: [PATCH] test: drop dead code Signed-off-by: Enrico Weigelt, metux IT consult --- test/test_render.c | 66 ---------------------------------------------- 1 file changed, 66 deletions(-) diff --git a/test/test_render.c b/test/test_render.c index 926e930d..4bee4a52 100644 --- a/test/test_render.c +++ b/test/test_render.c @@ -83,69 +83,3 @@ void test_target_destroy_render(struct test_display *dpy, break; } } - -#if 0 -static int random_bool(void) -{ - return rand() > RAND_MAX/2; -} - -static Picture create_alpha_map(void) -{ - return 0; -} - -static Pixmap create_clip_mask(void) -{ - return 0; -} - -unsigned int test_render_randomize_picture_attributes(XRenderPictureAttributes *pa) -{ - unsigned int flags = 0; - - memset(pa, 0, sizeof(*pa)); - - if (random_bool()) { - pa->repeat = repeat_modes[rand() % ARRAY_SIZE(repeat_modes)]; - flags |= CPRepeat; - - } - - if (random_bool()) { - pa->alpha_map = create_alpha_map(); - pa->alpha_x_origin = rand() % 1024; - pa->alpha_y_origin = rand() % 1024; - flags |= CPAlphaMap; - } - - if (random_bool()) { - pa->clip_mask = create_clip_mask(); - pa->clip_x_orgin = rand() % 1024; - pa->clip_y_orgin = rand() % 1024; - flags |= CPClipMask; - } - - if (random_bool()) { - pa->subwindow_mode = random_bool(); - flags |= CPSubwindowMode; - } - - if (random_bool()) { - pa->poly_edge = random_bool(); - flags |= CPPolyEdge; - } - - if (random_bool()) { - pa->poly_mode = random_bool(); - flags |= CPPolyMode; - } - - if (random_bool()) { - pa->component_alpha = random_bool(); - flags |= CPComponentAlpha; - } - - return flags; -} -#endif