Drop dead model code, and let edits that select nothing return nothing
Model::uid_get, the UidIndex element types, Playback's accumulator, ID_NONE and track_frames_count_get were unused. Fourteen edit functions only ever returned an empty selection, so they return void.
This commit is contained in:
1 parent
c44c7fe8df
commit
544ab3cac9
16 files changed
+79
-117
No files matched your search
+1
-1
@@ -1052,7 +1052,7 @@ bool Document::frames_range_select(Reference firstReference, Reference lastRefer
|
||||
return false;
|
||||
|
||||
auto item = model.track_get(lastReference);
|
||||
if (!item || std::max(firstReference.frameIndex, lastReference.frameIndex) >= track_frames_count_get(*item))
|
||||
if (!item || std::max(firstReference.frameIndex, lastReference.frameIndex) >= (int)item->frames.size())
|
||||
return false;
|
||||
|
||||
auto [firstIndex, lastIndex] = std::minmax(firstReference.frameIndex, lastReference.frameIndex);
|
||||
|
||||
Reference in new issue
Block a user