mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
Removed unused fields
This commit is contained in:
parent
0c48ef5ad8
commit
c8a8ff66f2
2 changed files with 0 additions and 9 deletions
|
@ -6,7 +6,6 @@
|
|||
#include <assert.h>
|
||||
#include <wayland-server.h>
|
||||
#include <xf86drm.h>
|
||||
#include <sys/stat.h>
|
||||
#include <wlr/backend/session.h>
|
||||
#include <wlr/backend/interface.h>
|
||||
#include <wlr/interfaces/wlr_output.h>
|
||||
|
@ -119,12 +118,6 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
|
|||
|
||||
backend->fd = gpu_fd;
|
||||
|
||||
struct stat st;
|
||||
if (fstat(backend->fd, &st) < 0) {
|
||||
wlr_log_errno(L_ERROR, "Stat failed");
|
||||
}
|
||||
backend->dev = st.st_rdev;
|
||||
|
||||
backend->drm_invalidated.notify = drm_invalidated;
|
||||
wlr_session_signal_add(session, gpu_fd, &backend->drm_invalidated);
|
||||
|
||||
|
|
|
@ -86,7 +86,6 @@ struct wlr_drm_backend {
|
|||
const struct wlr_drm_interface *iface;
|
||||
|
||||
int fd;
|
||||
dev_t dev;
|
||||
|
||||
size_t num_crtcs;
|
||||
struct wlr_drm_crtc *crtcs;
|
||||
|
@ -117,7 +116,6 @@ struct wlr_drm_backend {
|
|||
struct wl_listener session_signal;
|
||||
struct wl_listener drm_invalidated;
|
||||
|
||||
uint32_t taken_crtcs;
|
||||
list_t *outputs;
|
||||
|
||||
struct wlr_drm_renderer renderer;
|
||||
|
|
Loading…
Reference in a new issue