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