diff -r 8086681cabfb -r 1726c5109ccd ui/common/document.c --- a/ui/common/document.c Sun Jun 15 12:09:28 2025 +0200 +++ b/ui/common/document.c Mon Jun 16 21:04:10 2025 +0200 @@ -44,44 +44,6 @@ } } -void ui_set_document(UiObject *obj, void *document) { - uic_context_detach_all(obj->ctx); - obj->ctx->attach_document(obj->ctx, document); -} - -void ui_detach_document(UiObject *obj) { - uic_context_detach_all(obj->ctx); -} - -void* ui_get_document(UiObject *obj) { - return obj->ctx->document; -} - -void ui_set_subdocument(void *document, void *sub) { - UiContext *ctx = ui_document_context(document); - if(!ctx) { - fprintf(stderr, "UI Error: pointer is not a document\n"); - } - // TODO -} - -void ui_detach_subdocument(void *document, void *sub) { - UiContext *ctx = ui_document_context(document); - if(!ctx) { - fprintf(stderr, "UI Error: pointer is not a document\n"); - } - // TODO -} - -void* ui_get_subdocument(void *document) { - UiContext *ctx = ui_document_context(document); - if(!ctx) { - fprintf(stderr, "UI Error: pointer is not a document\n"); - } - // TODO - return NULL; -} - void* ui_document_new(size_t size) { CxMempool *mp = cxMempoolCreateSimple(256); const CxAllocator *a = mp->allocator;