screencopy: Remove dead code

This commit is contained in:
Alexander Orzechowski 2024-03-22 11:33:10 -04:00
parent b7d003caef
commit 3224fe6a51

View file

@ -231,7 +231,6 @@ static bool frame_dma_copy(struct wlr_screencopy_frame_v1 *frame,
struct wlr_renderer *renderer = output->renderer;
assert(renderer);
struct wlr_texture *src_tex =
wlr_texture_from_buffer(renderer, src_buffer);
if (src_tex == NULL) {
@ -274,8 +273,6 @@ static void frame_handle_output_commit(struct wl_listener *listener,
wl_container_of(listener, frame, output_commit);
struct wlr_output_event_commit *event = data;
struct wlr_output *output = frame->output;
struct wlr_renderer *renderer = output->renderer;
assert(renderer);
if (!(event->state->committed & WLR_OUTPUT_STATE_BUFFER)) {
return;