test: drop dead code

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-24 15:08:11 +02:00
parent 4ef542eb13
commit fc8fd35b86

View File

@@ -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