From 3cf571227237f12e2a51f0e61046ac1a408bcb10 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Wed, 27 Jul 2022 11:37:20 +0200 Subject: [PATCH] tests: SvgAnalyzer: remove unused parameter names instead of void casting them to avoid warnings --- tests/svgpp_context.cpp | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/tests/svgpp_context.cpp b/tests/svgpp_context.cpp index 9b75fc727..b69f5cb98 100644 --- a/tests/svgpp_context.cpp +++ b/tests/svgpp_context.cpp @@ -6,53 +6,43 @@ SvgppContext::SvgppContext(ISVGAnalyzer *svgAnalyzer) : m_svgAnalyzer(svgAnalyzer){}; -void SvgppContext::on_enter_element(svgpp::tag::element::svg e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::svg) { m_svgAnalyzer->on_enter_element_svg(); } -void SvgppContext::on_enter_element(svgpp::tag::element::g e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::g) { m_svgAnalyzer->on_enter_element_g(); } -void SvgppContext::on_enter_element(svgpp::tag::element::circle e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::circle) { m_svgAnalyzer->on_enter_element_circle(); } -void SvgppContext::on_enter_element(svgpp::tag::element::ellipse e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::ellipse) { m_svgAnalyzer->on_enter_element_ellipse(); } -void SvgppContext::on_enter_element(svgpp::tag::element::line e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::line) { m_svgAnalyzer->on_enter_element_line(); } -void SvgppContext::on_enter_element(svgpp::tag::element::path e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::path) { m_svgAnalyzer->on_enter_element_path(); } -void SvgppContext::on_enter_element(svgpp::tag::element::polygon e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::polygon) { m_svgAnalyzer->on_enter_element_polygon(); } -void SvgppContext::on_enter_element(svgpp::tag::element::polyline e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::polyline) { m_svgAnalyzer->on_enter_element_polyline(); } -void SvgppContext::on_enter_element(svgpp::tag::element::rect e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::rect) { m_svgAnalyzer->on_enter_element_rect(); } -void SvgppContext::on_enter_element(svgpp::tag::element::title e) { - (void)e; +void SvgppContext::on_enter_element(svgpp::tag::element::title) { m_svgAnalyzer->on_enter_element_title(); } -- 2.40.0