# HG changeset patch # User Olaf Wintermann # Date 1780593688 -7200 # Node ID 01653cc7256b327b6230f9701c2c7c8049fe0d1e # Parent aca0b56e92d2561f2d3f8e8749471c018830d184 remove unnecessary UiContext attach/detach fptrs diff -r aca0b56e92d2 -r 01653cc7256b ui/common/context.c --- a/ui/common/context.c Thu Jun 04 19:20:04 2026 +0200 +++ b/ui/common/context.c Thu Jun 04 19:21:28 2026 +0200 @@ -71,9 +71,6 @@ ctx->actions = cxHashMapCreate(ctx->allocator, sizeof(UiAction), 8); ctx->action_bindings = cxArrayListCreate(ctx->allocator, sizeof(UiActionBinding), 0); - ctx->attach_document = uic_context_attach_document; - ctx->detach_document2 = uic_context_detach_document; - #if UI_GTK2 || UI_GTK3 if(toplevel && toplevel->widget) { ctx->accel_group = gtk_accel_group_new(); @@ -245,7 +242,7 @@ // detach documents i = cxListIterator(ls); cx_foreach(void *, doc, i) { - ctx->detach_document2(ctx, doc); + uic_context_detach_document(ctx, doc); } cxListFree(ls); diff -r aca0b56e92d2 -r 01653cc7256b ui/common/context.h --- a/ui/common/context.h Thu Jun 04 19:20:04 2026 +0200 +++ b/ui/common/context.h Thu Jun 04 19:21:28 2026 +0200 @@ -80,9 +80,6 @@ CxMap *actions; // key: action name (string), value: UiAction CxList *action_bindings; // UiActionBinding list - void (*attach_document)(UiContext *ctx, void *document); - void (*detach_document2)(UiContext *ctx, void *document); - char *title; #ifdef UI_GTK