Skip to content

Commit

Permalink
remove pass-through method
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 14, 2024
1 parent 0d0ef1b commit 1c0045f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion libheif/api/libheif/heif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::shared_ptr<ImageItem_Tiled>> 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());
Expand Down
7 changes: 0 additions & 7 deletions libheif/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1398,13 +1398,6 @@ Result<std::shared_ptr<ImageItem_Overlay>> HeifContext::add_iovl_item(const Imag
}


Result<std::shared_ptr<ImageItem_Tiled>> 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<HeifPixelImage>& image,
struct heif_encoder* encoder)
Expand Down
3 changes: 0 additions & 3 deletions libheif/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ class HeifContext : public ErrorBuffer

Result<std::shared_ptr<ImageItem_Overlay>> add_iovl_item(const ImageOverlay& overlayspec);

Result<std::shared_ptr<ImageItem_Tiled>> 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<HeifPixelImage>& image,
struct heif_encoder* encoder);
Expand Down

0 comments on commit 1c0045f

Please sign in to comment.