mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 13:12:17 +01:00
Simplify by removing class HitTestResult...
... Because all hit tests returned all fields blank, or else, returned a UIHandle object whose Preview method gives the rest of the information; so the other fields were redundant.
This commit is contained in:
@@ -21,7 +21,7 @@ TrackPanelResizerCell::TrackPanelResizerCell( std::shared_ptr<Track> pTrack )
|
||||
: mpTrack{ pTrack }
|
||||
{}
|
||||
|
||||
HitTestResult TrackPanelResizerCell::HitTest
|
||||
UIHandlePtr TrackPanelResizerCell::HitTest
|
||||
(const TrackPanelMouseState &st, const AudacityProject *pProject)
|
||||
{
|
||||
auto pTrack = mpTrack.lock();
|
||||
@@ -29,10 +29,7 @@ HitTestResult TrackPanelResizerCell::HitTest
|
||||
auto result = std::make_shared<TrackPanelResizeHandle>(
|
||||
pTrack, st.state.m_y, pProject );
|
||||
result = AssignUIHandlePtr(mResizeHandle, result);
|
||||
return {
|
||||
result->Preview(st, pProject),
|
||||
result
|
||||
};
|
||||
return result;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user