JCF: remove useless code. There already is an assertion for (pciUnit <> nil).

git-svn-id: trunk@46060 -
This commit is contained in:
juha 2014-08-22 17:25:18 +00:00
parent feb85653da
commit eb2bda913b

View File

@ -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;