mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-27 09:41:55 +01: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;
|
GetRegSettings.ReadAll;
|
||||||
|
|
||||||
{ check for read-only }
|
{ check for read-only }
|
||||||
if pciUnit <> nil then
|
if pciUnit.ReadOnly then
|
||||||
begin
|
begin
|
||||||
if pciUnit.ReadOnly then
|
SendStatusMessage(pciUnit.FileName, 'Unit is read only. Cannot format ',
|
||||||
begin
|
mtInputError, -1, -1);
|
||||||
SendStatusMessage(pciUnit.FileName, 'Unit is read only. Cannot format ',
|
exit;
|
||||||
mtInputError, -1, -1);
|
|
||||||
exit;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
fsCurrentUnitName := pciUnit.FileName;
|
fsCurrentUnitName := pciUnit.FileName;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user