From 9196cc51dd7bbca22f28de6ab34f938996cb715d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Apr 2026 21:40:29 +0530 Subject: [PATCH] Remove unused function --- kitty/dnd.c | 7 ------- kitty/dnd.h | 1 - 2 files changed, 8 deletions(-) diff --git a/kitty/dnd.c b/kitty/dnd.c index 59ebba0f5..071012c9a 100644 --- a/kitty/dnd.c +++ b/kitty/dnd.c @@ -456,13 +456,6 @@ do_drop_request_data(Window *w, int32_t idx) { return false; /* async: completion via drop_dispatch_data */ } -void -drop_request_data(Window *w, const char *mime) { - /* This function is no longer used in the new protocol; MIME data requests - * are now handled through the unified t=r queue via do_drop_request_data. */ - (void)w; (void)mime; -} - void drop_dispatch_data(Window *w, const char *mime, const char *data, ssize_t sz) { if (sz < 0) { diff --git a/kitty/dnd.h b/kitty/dnd.h index 4d787649e..bf33f1792 100644 --- a/kitty/dnd.h +++ b/kitty/dnd.h @@ -13,7 +13,6 @@ void drop_register_window(Window *w, const uint8_t *payload, size_t payload_sz, void drop_move_on_child(Window *w, const char **mimes, size_t num_mimes, bool is_drop); void drop_left_child(Window *w); void drop_free_data(Window *w); -void drop_request_data(Window *w, const char *mime); void drop_send_einval(Window *w); void drop_request_uri_data(Window *w, const char *payload, size_t payload_sz); void drop_handle_dir_request(Window *w, uint32_t handle_id, int32_t entry_num);