diff --git a/include/wlr/types/wlr_mirror.h b/include/wlr/types/wlr_mirror.h index cc80cd9c6..31f5136f3 100644 --- a/include/wlr/types/wlr_mirror.h +++ b/include/wlr/types/wlr_mirror.h @@ -37,7 +37,6 @@ * Immutable over session. */ struct wlr_mirror_params { - /** * Render the src cursor on dst. */ @@ -56,7 +55,6 @@ struct wlr_mirror_params { struct wlr_mirror_state; struct wlr_mirror { - struct { /** * Ready to render a frame. Handler should call wlr_mirror_request_ diff --git a/types/wlr_mirror.c b/types/wlr_mirror.c index 6195e53bd..7b0ce93e0 100644 --- a/types/wlr_mirror.c +++ b/types/wlr_mirror.c @@ -67,10 +67,6 @@ struct wlr_mirror_state { struct wlr_mirror_stats stats; }; -/** - * BEGIN helper functions - */ - /** * Swaps v, h depending on rotation of the transform. */ @@ -92,7 +88,6 @@ static void rotate_v_h(int32_t *v_rotated, int32_t *h_rotated, static void calculate_absolute_box(struct wlr_box *absolute, struct wlr_box *relative, enum wl_output_transform transform, int32_t width, int32_t height) { - rotate_v_h(&absolute->x, &absolute->y, transform, relative->x, relative->y); rotate_v_h(&absolute->width, &absolute->height, transform, relative->width, relative->height); @@ -135,7 +130,6 @@ static void calculate_dst_box(struct wlr_box *box_dst, enum wl_output_transform transform_dst, int32_t width_src, int32_t height_src, int32_t width_dst, int32_t height_dst) { - double width_scaled, height_scaled; int32_t width_src_rotated, height_src_rotated; int32_t width_dst_rotated, height_dst_rotated; @@ -170,7 +164,6 @@ static void calculate_dst_box(struct wlr_box *box_dst, */ static void calculate_render_matrix(float mat[static 9], struct wlr_box *box_dst, enum wl_output_transform transform_src, float transform_matrix_dst[static 9]) { - // account for the rotated dimensions of dst struct wlr_box box_rotated = *box_dst; rotate_v_h(&box_rotated.width, &box_rotated.height, transform_src, @@ -182,7 +175,6 @@ static void calculate_render_matrix(float mat[static 9], struct wlr_box *box_dst } static void schedule_frame_dst(struct wlr_mirror_state *state) { - wlr_output_schedule_frame(state->output_dst); wl_list_remove(&state->output_dst_frame.link); @@ -208,14 +200,6 @@ static void remove_output_src(struct wlr_mirror_output_src *src) { } } -/** - * END helper functions - */ - -/** - * BEGIN wlr_mirror handler functions - */ - static void output_src_handle_precommit(struct wl_listener *listener, void *data) { struct wlr_mirror_output_src *m_output_src = wl_container_of(listener, m_output_src, precommit); @@ -370,14 +354,6 @@ static void output_dst_handle_destroy(struct wl_listener *listener, void *data) wlr_mirror_destroy(mirror); } -/** - * END wlr_mirror handler functions - */ - -/** - * BEGIN addons - */ - static void output_dst_addon_handle_destroy(struct wlr_addon *addon) { // wlr_mirror_v1_destroy finishes addon, following output_dst_handle_destroy } @@ -387,14 +363,6 @@ static const struct wlr_addon_interface output_dst_addon_impl = { .destroy = output_dst_addon_handle_destroy, }; -/** - * END addons - */ - -/** - * BEGIN public functions - */ - struct wlr_mirror *wlr_mirror_create(struct wlr_mirror_params *params) { if (!params->output_dst->enabled) { wlr_log(WLR_ERROR, "Mirror dst '%s' not enabled", params->output_dst->name); @@ -578,7 +546,3 @@ bool wlr_mirror_v1_output_is_dst(struct wlr_output *output) { return is_dst; } -/** - * END public functions - */ -