Skip to content

Commit

Permalink
Avoid useless operation when removing a Track
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Aug 11, 2024
1 parent ecd9fde commit 375d53a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/channels/channelManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ void ChannelManager::removeTrack(std::size_t trackIndex)
{
assert(canRemoveTrack(trackIndex));

const ID groupChannelId = m_model.get().tracks.get(trackIndex).getGroupChannel().id;

m_model.get().tracks.removeChannel(groupChannelId);
m_model.get().tracks.remove(trackIndex);
m_model.swap(model::SwapType::HARD);
}
Expand Down

0 comments on commit 375d53a

Please sign in to comment.