aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-05-30 16:17:25 +0200
committerIsaac Freund <mail@isaacfreund.com>2022-05-30 21:57:12 +0000
commit17fbf60bd1878ae81f4cfdbe67bed62dea621a63 (patch)
tree7d79fa51d3eb3dd588b15c0f498a0f235fbdc41a
parent98c5f58a388926c3db5d5b4b9275645bccd54271 (diff)
relative-pointer-v1: remove unnecessary comments
We don't do this in other implementations, so it feels out of place.
-rw-r--r--types/wlr_relative_pointer_v1.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/types/wlr_relative_pointer_v1.c b/types/wlr_relative_pointer_v1.c
index 0c3d3829..ddd39974 100644
--- a/types/wlr_relative_pointer_v1.c
+++ b/types/wlr_relative_pointer_v1.c
@@ -14,29 +14,18 @@
static const struct zwp_relative_pointer_manager_v1_interface relative_pointer_manager_v1_impl;
static const struct zwp_relative_pointer_v1_interface relative_pointer_v1_impl;
-
-/**
- * helper functions
- */
-
struct wlr_relative_pointer_v1 *wlr_relative_pointer_v1_from_resource(struct wl_resource *resource) {
assert(wl_resource_instance_of(resource, &zwp_relative_pointer_v1_interface,
&relative_pointer_v1_impl));
return wl_resource_get_user_data(resource);
}
-
static struct wlr_relative_pointer_manager_v1 *relative_pointer_manager_from_resource(struct wl_resource *resource) {
assert(wl_resource_instance_of(resource, &zwp_relative_pointer_manager_v1_interface,
&relative_pointer_manager_v1_impl));
return wl_resource_get_user_data(resource);
}
-
-/**
- * relative_pointer handler functions
- */
-
static void relative_pointer_destroy(struct wlr_relative_pointer_v1 *relative_pointer) {
wlr_signal_emit_safe(&relative_pointer->events.destroy, relative_pointer);
@@ -57,7 +46,6 @@ static void relative_pointer_v1_handle_resource_destroy(struct wl_resource *reso
relative_pointer_destroy(relative_pointer);
}
-
static void relative_pointer_v1_handle_destroy(struct wl_client *client,
struct wl_resource *resource) {
struct wlr_relative_pointer_v1 *relative_pointer =
@@ -84,10 +72,6 @@ static void relative_pointer_handle_pointer_destroy(struct wl_listener *listener
relative_pointer_destroy(relative_pointer);
}
-/**
- * relative_pointer_manager handler functions
- */
-
static void relative_pointer_manager_v1_handle_destroy(struct wl_client *client,
struct wl_resource *resource) {
wl_resource_destroy(resource);
@@ -150,7 +134,6 @@ static void relative_pointer_manager_v1_handle_get_relative_pointer(struct wl_cl
relative_pointer, client);
}
-
static void relative_pointer_manager_v1_bind(struct wl_client *wl_client, void *data,
uint32_t version, uint32_t id) {
struct wlr_relative_pointer_manager_v1 *manager = data;
@@ -175,26 +158,15 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) {
free(manager);
}
-
-/**
- * Implementations
- */
-
static const struct zwp_relative_pointer_manager_v1_interface relative_pointer_manager_v1_impl = {
.destroy = relative_pointer_manager_v1_handle_destroy,
.get_relative_pointer = relative_pointer_manager_v1_handle_get_relative_pointer,
};
-
static const struct zwp_relative_pointer_v1_interface relative_pointer_v1_impl = {
.destroy = relative_pointer_v1_handle_destroy,
};
-
-/**
- * Public functions
- */
-
struct wlr_relative_pointer_manager_v1 *wlr_relative_pointer_manager_v1_create(struct wl_display *display) {
struct wlr_relative_pointer_manager_v1 *manager =
calloc(1, sizeof(struct wlr_relative_pointer_manager_v1));