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

Commit 65283e5

Browse files
committed
backend: remove noop backend
1 parent 3d0848d commit 65283e5

7 files changed

Lines changed: 0 additions & 245 deletions

File tree

backend/backend.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -270,20 +270,6 @@ static struct wlr_backend *attempt_headless_backend(
270270
return ensure_backend_renderer_and_allocator(backend);
271271
}
272272

273-
static struct wlr_backend *attempt_noop_backend(struct wl_display *display) {
274-
struct wlr_backend *backend = wlr_noop_backend_create(display);
275-
if (backend == NULL) {
276-
return NULL;
277-
}
278-
279-
size_t outputs = parse_outputs_env("WLR_NOOP_OUTPUTS");
280-
for (size_t i = 0; i < outputs; ++i) {
281-
wlr_noop_add_output(backend);
282-
}
283-
284-
return backend;
285-
}
286-
287273
#if WLR_HAS_DRM_BACKEND
288274
static struct wlr_backend *attempt_drm_backend(struct wl_display *display,
289275
struct wlr_backend *backend, struct wlr_session *session) {
@@ -327,8 +313,6 @@ static struct wlr_backend *attempt_backend_by_name(struct wl_display *display,
327313
#endif
328314
} else if (strcmp(name, "headless") == 0) {
329315
return attempt_headless_backend(display);
330-
} else if (strcmp(name, "noop") == 0) {
331-
return attempt_noop_backend(display);
332316
} else if (strcmp(name, "drm") == 0 || strcmp(name, "libinput") == 0) {
333317
// DRM and libinput need a session
334318
if (!*session) {

backend/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ endforeach
1616

1717
subdir('multi')
1818
subdir('wayland')
19-
subdir('noop')
2019
subdir('headless')
2120

2221
subdir('session')

backend/noop/backend.c

Lines changed: 0 additions & 79 deletions
This file was deleted.

backend/noop/meson.build

Lines changed: 0 additions & 4 deletions
This file was deleted.

backend/noop/output.c

Lines changed: 0 additions & 87 deletions
This file was deleted.

include/backend/noop.h

Lines changed: 0 additions & 27 deletions
This file was deleted.

include/wlr/backend/noop.h

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)