Skip to content

Commit 6a5fbcf

Browse files
committed
[[ Cleanup ]] Remove some unused code in obj deletion
1 parent ab5faf0 commit 6a5fbcf

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

engine/src/control.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,6 @@ Boolean MCControl::del(bool p_check_flag)
497497
if (getselected())
498498
getcard()->dirtyselection(rect);
499499

500-
uint2 num = 0;
501-
getcard()->count(CT_LAYER, CT_UNDEFINED, this, num, True);
502500
switch (parent->gettype())
503501
{
504502
case CT_STACK:

engine/src/group.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,6 @@ Boolean MCGroup::del(bool p_check_flag)
10791079
if (!isdeletable(p_check_flag))
10801080
return False;
10811081

1082-
rect = getcard()->getrect();
10831082
return MCControl::del(p_check_flag);
10841083
}
10851084

0 commit comments

Comments
 (0)