Skip to content

Commit

Permalink
Remove unused code in layerelement
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Mar 14, 2024
1 parent cc50738 commit c0406d6
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/layerelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,15 +396,6 @@ void LayerElement::SetGraceAlignment(Alignment *graceAlignment)

int LayerElement::GetDrawingX() const
{
// If this element has a facsimile and we are in facsimile mode, use Facsimile::GetDrawingX
if (this->HasFacs()) {
const Doc *doc = vrv_cast<const Doc *>(this->GetFirstAncestor(DOC));
assert(doc);
if (doc->IsFacs()) {
return FacsimileInterface::GetDrawingX();
}
}

// Since m_drawingFacsX is the left position, we adjust the XRel accordingly in AdjustXRelForTranscription
if (m_drawingFacsX != VRV_UNSET) return m_drawingFacsX + this->GetDrawingXRel();

Expand Down Expand Up @@ -444,14 +435,7 @@ int LayerElement::GetDrawingX() const

int LayerElement::GetDrawingY() const
{
// If this element has a facsimile and we are in facsimile mode, use Facsimile::GetDrawingY
if (this->HasFacs()) {
const Doc *doc = vrv_cast<const Doc *>(this->GetFirstAncestor(DOC));
assert(doc);
if (doc->IsFacs()) {
return FacsimileInterface::GetDrawingY();
}
}
if (m_drawingFacsY != VRV_UNSET) return m_drawingFacsY + this->GetDrawingYRel();

if (m_cachedDrawingY != VRV_UNSET) return m_cachedDrawingY;

Expand Down

0 comments on commit c0406d6

Please sign in to comment.