From 62b16fd36fefc574de9623591fc6ace622ab17bb Mon Sep 17 00:00:00 2001 From: Yinan Zhou Date: Wed, 15 May 2024 10:00:35 -0400 Subject: [PATCH] Remove unused variables --- src/editortoolkit_neume.cpp | 2 -- src/view_neume.cpp | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/editortoolkit_neume.cpp b/src/editortoolkit_neume.cpp index 2487fcd9043..5509dbbdc26 100644 --- a/src/editortoolkit_neume.cpp +++ b/src/editortoolkit_neume.cpp @@ -3344,8 +3344,6 @@ bool EditorToolkitNeume::ToggleLigature(std::vector elementIds) assert(elementIds.size() == 2); bool success1 = false; bool success2 = false; - Facsimile *facsimile = m_doc->GetFacsimile(); - assert(facsimile); std::string firstNcId = elementIds[0]; std::string secondNcId = elementIds[1]; // Check if you can get drawing page diff --git a/src/view_neume.cpp b/src/view_neume.cpp index 51ea1373dff..b332c29a859 100644 --- a/src/view_neume.cpp +++ b/src/view_neume.cpp @@ -63,9 +63,6 @@ void View::DrawLiquescent(DeviceContext *dc, LayerElement *element, Layer *layer assert(staff); assert(measure); - Liquescent *liquescent = dynamic_cast(element); - assert(liquescent); - struct drawingParams { wchar_t fontNo = SMUFL_E990_chantPunctum; wchar_t fontNoLiq[5] = {}; @@ -83,7 +80,6 @@ void View::DrawLiquescent(DeviceContext *dc, LayerElement *element, Layer *layer int clefLine = clef->GetLine(); Nc *nc = dynamic_cast(element->GetParent()); - assert(liquescent); if (nc->GetCurve() == curvatureDirection_CURVE_c) { params.at(0).fontNoLiq[0] = SMUFL_E9BE_chantConnectingLineAsc3rd;