Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

backend: remove noop backend #3227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions backend/backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <wlr/backend/headless.h>
#include <wlr/backend/interface.h>
#include <wlr/backend/multi.h>
#include <wlr/backend/noop.h>
#include <wlr/backend/session.h>
#include <wlr/backend/wayland.h>
#include <wlr/config.h>
Expand Down Expand Up @@ -270,20 +269,6 @@ static struct wlr_backend *attempt_headless_backend(
return ensure_backend_renderer_and_allocator(backend);
}

static struct wlr_backend *attempt_noop_backend(struct wl_display *display) {
struct wlr_backend *backend = wlr_noop_backend_create(display);
if (backend == NULL) {
return NULL;
}

size_t outputs = parse_outputs_env("WLR_NOOP_OUTPUTS");
for (size_t i = 0; i < outputs; ++i) {
wlr_noop_add_output(backend);
}

return backend;
}

#if WLR_HAS_DRM_BACKEND
static struct wlr_backend *attempt_drm_backend(struct wl_display *display,
struct wlr_backend *backend, struct wlr_session *session) {
Expand Down Expand Up @@ -327,8 +312,6 @@ static struct wlr_backend *attempt_backend_by_name(struct wl_display *display,
#endif
} else if (strcmp(name, "headless") == 0) {
return attempt_headless_backend(display);
} else if (strcmp(name, "noop") == 0) {
return attempt_noop_backend(display);
} else if (strcmp(name, "drm") == 0 || strcmp(name, "libinput") == 0) {
// DRM and libinput need a session
if (!*session) {
Expand Down
1 change: 0 additions & 1 deletion backend/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ endforeach

subdir('multi')
subdir('wayland')
subdir('noop')
subdir('headless')

subdir('session')
79 changes: 0 additions & 79 deletions backend/noop/backend.c

This file was deleted.

4 changes: 0 additions & 4 deletions backend/noop/meson.build

This file was deleted.

87 changes: 0 additions & 87 deletions backend/noop/output.c

This file was deleted.

27 changes: 0 additions & 27 deletions include/backend/noop.h

This file was deleted.

31 changes: 0 additions & 31 deletions include/wlr/backend/noop.h

This file was deleted.