From: Magnus Jacobsson Date: Wed, 27 Jul 2022 09:37:20 +0000 (+0200) Subject: tests: SvgAnalyzer: remove unused parameter names instead of void casting them to... X-Git-Tag: 5.0.1~7^2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cf571227237f12e2a51f0e61046ac1a408bcb10;p=graphviz tests: SvgAnalyzer: remove unused parameter names instead of void casting them to avoid warnings --- 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(); }