mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 15:32:35 +02:00
JCF: remove useless code. There already is an assertion for (pciUnit <> nil).
git-svn-id: trunk@46060 -
This commit is contained in:
parent
feb85653da
commit
eb2bda913b
@ -131,14 +131,11 @@ begin
|
||||
GetRegSettings.ReadAll;
|
||||
|
||||
{ check for read-only }
|
||||
if pciUnit <> nil then
|
||||
if pciUnit.ReadOnly then
|
||||
begin
|
||||
if pciUnit.ReadOnly then
|
||||
begin
|
||||
SendStatusMessage(pciUnit.FileName, 'Unit is read only. Cannot format ',
|
||||
mtInputError, -1, -1);
|
||||
exit;
|
||||
end;
|
||||
SendStatusMessage(pciUnit.FileName, 'Unit is read only. Cannot format ',
|
||||
mtInputError, -1, -1);
|
||||
exit;
|
||||
end;
|
||||
|
||||
fsCurrentUnitName := pciUnit.FileName;
|
||||
|
Loading…
Reference in New Issue
Block a user