1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-19 15:11:23 +01:00

Remove rectangle calculation that became unused at cb3e5e6

This commit is contained in:
Paul Licameli
2018-11-09 09:29:43 -05:00
parent e6324e86ac
commit 4dbe88df26

View File

@@ -1681,20 +1681,6 @@ void LabelTrack::HandleTextClick(const wxMouseEvent & evt,
// Actually this might be right or middle down
mRightDragging = true;
// reset the highlight indicator
wxRect highlightedRect;
{
int xpos1, xpos2;
CalcHighlightXs(&xpos1, &xpos2);
wxASSERT(mFontHeight >= 0); // should have been set up while drawing
// the rectangle of highlighted area
highlightedRect = {
xpos1, labelStruct.y - mFontHeight / 2,
(int)(xpos2 - xpos1 + 0.5), mFontHeight
};
}
// Middle click on GTK: paste from primary selection
#if defined(__WXGTK__) && (HAVE_GTK)
if (evt.MiddleDown()) {