mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-29 13:00:34 +01:00
IDE: remove unused units: undoblock
git-svn-id: trunk@34247 -
This commit is contained in:
parent
e05554c7fc
commit
964d962382
@ -114,12 +114,17 @@ begin
|
||||
else
|
||||
RemoveUnits:=nil;
|
||||
if (RemoveUnits<>nil) and (RemoveUnits.Count>0) then begin
|
||||
for i:=0 to RemoveUnits.Count-1 do begin
|
||||
if not CodeToolBoss.RemoveUnitFromAllUsesSections(Code,RemoveUnits[i])
|
||||
then begin
|
||||
LazarusIDE.DoJumpToCodeToolBossError;
|
||||
exit(mrCancel);
|
||||
SrcEdit.BeginUndoBlock;
|
||||
try
|
||||
for i:=0 to RemoveUnits.Count-1 do begin
|
||||
if not CodeToolBoss.RemoveUnitFromAllUsesSections(Code,RemoveUnits[i])
|
||||
then begin
|
||||
LazarusIDE.DoJumpToCodeToolBossError;
|
||||
exit(mrCancel);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
SrcEdit.EndUndoBlock;
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
|
||||
Loading…
Reference in New Issue
Block a user