backend/drm: Remove reset from interface

The reset implementations are no longer used.
This commit is contained in:
Kenny Levinsen 2024-10-29 11:13:13 +01:00
parent 0f255b46fc
commit 1edd5e224f
4 changed files with 0 additions and 44 deletions

View file

@ -270,20 +270,6 @@ bool drm_legacy_crtc_set_gamma(struct wlr_drm_backend *drm,
return true;
}
static bool legacy_reset(struct wlr_drm_backend *drm) {
bool ok = true;
for (size_t i = 0; i < drm->num_crtcs; i++) {
struct wlr_drm_crtc *crtc = &drm->crtcs[i];
if (drmModeSetCrtc(drm->fd, crtc->id, 0, 0, 0, NULL, 0, NULL) != 0) {
wlr_log_errno(WLR_ERROR, "Failed to disable CRTC %"PRIu32,
crtc->id);
ok = false;
}
}
return ok;
}
const struct wlr_drm_interface legacy_iface = {
.commit = legacy_commit,
.reset = legacy_reset,
};