test-display-base: Remove only written "qxl_worker" from Test

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Frediano Ziglio 2020-03-16 02:50:19 +00:00
parent 78a9aa943a
commit 2f130edfdd
2 changed files with 0 additions and 13 deletions

View File

@ -427,16 +427,7 @@ static void attache_worker(QXLInstance *qin, QXLWorker *_qxl_worker)
{
Test *test = SPICE_CONTAINEROF(qin, Test, qxl_instance);
if (test->qxl_worker) {
if (test->qxl_worker != _qxl_worker)
printf("%s ignored, %p is set, ignoring new %p\n", __func__,
test->qxl_worker, _qxl_worker);
else
printf("%s ignored, redundant\n", __func__);
return;
}
printf("%s\n", __func__);
test->qxl_worker = _qxl_worker;
spice_qxl_add_memslot(&test->qxl_instance, &slot);
create_primary_surface(test, DEFAULT_WIDTH, DEFAULT_HEIGHT);
spice_server_vm_start(test->server);
@ -516,9 +507,6 @@ static int get_command(SPICE_GNUC_UNUSED QXLInstance *qin,
static void produce_command(Test *test)
{
Command *command;
QXLWorker *qxl_worker = test->qxl_worker;
spice_assert(qxl_worker);
if (test->has_secondary)
test->target_surface = 1;

View File

@ -100,7 +100,6 @@ struct Test {
SpiceServer *server;
QXLInstance qxl_instance;
QXLWorker *qxl_worker;
uint8_t primary_surface[MAX_HEIGHT * MAX_WIDTH * 4];
int primary_height;