Skip to content

Commit

Permalink
Remove unused code in Measure
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Jan 10, 2024
1 parent 3d18b64 commit 41757db
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,6 @@ void Measure::AddChildBack(Object *child)

int Measure::GetDrawingX() const
{
/*
if (!this->IsMeasuredMusic()) {
const System *system = vrv_cast<const System *>(this->GetFirstAncestor(SYSTEM));
assert(system);
if (system->m_drawingFacsY != VRV_UNSET) {
return (system->m_systemLeftMar);
}
}
*/

if (m_drawingFacsX1 != VRV_UNSET) return m_drawingFacsX1;

if (m_cachedDrawingX != VRV_UNSET) return m_cachedDrawingX;
Expand Down Expand Up @@ -355,19 +345,6 @@ int Measure::GetRightBarLineRight() const

int Measure::GetWidth() const
{
/*
if (!this->IsMeasuredMusic()) {
const System *system = vrv_cast<const System *>(this->GetFirstAncestor(SYSTEM));
assert(system);
if (system->m_drawingFacsY != VRV_UNSET) {
const Page *page = vrv_cast<const Page *>(system->GetFirstAncestor(PAGE));
assert(page);
// xAbs2 = page->m_pageWidth - system->m_systemRightMar;
return page->m_pageWidth - system->m_systemLeftMar - system->m_systemRightMar;
}
}
*/

if (m_drawingFacsX2 != VRV_UNSET) return (m_drawingFacsX2 - m_drawingFacsX1);

assert(m_measureAligner.GetRightAlignment());
Expand Down

0 comments on commit 41757db

Please sign in to comment.