From 8ffe04780def2570c3806e6c18fa14a79fd105eb Mon Sep 17 00:00:00 2001 From: Zardshard <0azrune6@zard.anonaddy.com> Date: Wed, 17 May 2023 14:44:07 -0400 Subject: [PATCH] Icon-O-Matic: Remove unused function parameter Change-Id: Idbcddacb54597eb10c95de3db2b08067e507bbda Reviewed-on: https://review.haiku-os.org/c/haiku/+/6446 Tested-by: Commit checker robot Reviewed-by: Adrien Destugues --- src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp | 3 +-- src/apps/icon-o-matic/import_export/svg/DocumentBuilder.h | 1 - src/apps/icon-o-matic/import_export/svg/SVGImporter.cpp | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp b/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp index 186eeb265e..3ae2257d1e 100644 --- a/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp +++ b/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.cpp @@ -63,8 +63,7 @@ DocumentBuilder::SetDimensions(uint32 width, uint32 height, BRect viewBox) // GetIcon status_t -DocumentBuilder::GetIcon(Icon* icon, SVGImporter* importer, - const char* fallbackName) +DocumentBuilder::GetIcon(Icon* icon, const char* fallbackName) { double xMin = 0; double yMin = 0; diff --git a/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.h b/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.h index 55760e6897..ae33d6e62a 100644 --- a/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.h +++ b/src/apps/icon-o-matic/import_export/svg/DocumentBuilder.h @@ -39,7 +39,6 @@ class DocumentBuilder { status_t GetIcon(Icon* icon, - SVGImporter* importer, const char* fallbackName); private: diff --git a/src/apps/icon-o-matic/import_export/svg/SVGImporter.cpp b/src/apps/icon-o-matic/import_export/svg/SVGImporter.cpp index 8b3f176d39..a57269ede0 100644 --- a/src/apps/icon-o-matic/import_export/svg/SVGImporter.cpp +++ b/src/apps/icon-o-matic/import_export/svg/SVGImporter.cpp @@ -74,7 +74,7 @@ SVGImporter::Import(Icon* icon, const entry_ref* ref) } DocumentBuilder builder(svg); - ret = builder.GetIcon(icon, this, ref->name); + ret = builder.GetIcon(icon, ref->name); nsvgDelete(svg); return ret;