From 1c0045fa36bf52ebe59b8f8e58af5961d7defb2e Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Mon, 14 Oct 2024 12:21:06 +0200 Subject: [PATCH] remove pass-through method --- libheif/api/libheif/heif.cc | 2 +- libheif/context.cc | 7 ------- libheif/context.h | 3 --- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/libheif/api/libheif/heif.cc b/libheif/api/libheif/heif.cc index 72bd5f7d58..4fe419819f 100644 --- a/libheif/api/libheif/heif.cc +++ b/libheif/api/libheif/heif.cc @@ -3553,7 +3553,7 @@ struct heif_error heif_context_add_tiled_image(struct heif_context* ctx, struct heif_image_handle** out_grid_image_handle) { Result> gridImageResult; - gridImageResult = ctx->context->add_tiled_item(parameters, encoder); + gridImageResult = ImageItem_Tiled::add_new_tiled_item(ctx->context.get(), parameters, encoder); if (gridImageResult.error != Error::Ok) { return gridImageResult.error.error_struct(ctx->context.get()); diff --git a/libheif/context.cc b/libheif/context.cc index d19c456383..ede47ad1d8 100644 --- a/libheif/context.cc +++ b/libheif/context.cc @@ -1398,13 +1398,6 @@ Result> HeifContext::add_iovl_item(const Imag } -Result> HeifContext::add_tiled_item(const heif_tiled_image_parameters* parameters, - const struct heif_encoder* encoder) -{ - return ImageItem_Tiled::add_new_tiled_item(this, parameters, encoder); -} - - Error HeifContext::add_tiled_image_tile(heif_item_id tild_id, uint32_t tile_x, uint32_t tile_y, const std::shared_ptr& image, struct heif_encoder* encoder) diff --git a/libheif/context.h b/libheif/context.h index 57c5d7f31a..cf95bff8fb 100644 --- a/libheif/context.h +++ b/libheif/context.h @@ -151,9 +151,6 @@ class HeifContext : public ErrorBuffer Result> add_iovl_item(const ImageOverlay& overlayspec); - Result> add_tiled_item(const heif_tiled_image_parameters* parameters, - const struct heif_encoder* encoder); - Error add_tiled_image_tile(heif_item_id tili_id, uint32_t tile_x, uint32_t tile_y, const std::shared_ptr& image, struct heif_encoder* encoder);