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

Commit

Permalink
backend: remove noop backend
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckb0ne committed Sep 30, 2021
1 parent 3d0848d commit 65283e5
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 245 deletions.
16 changes: 0 additions & 16 deletions backend/backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,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 +313,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.

0 comments on commit 65283e5

Please sign in to comment.