mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 05:18:15 +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,15 +131,12 @@ begin
|
||||
GetRegSettings.ReadAll;
|
||||
|
||||
{ check for read-only }
|
||||
if pciUnit <> nil then
|
||||
begin
|
||||
if pciUnit.ReadOnly then
|
||||
begin
|
||||
SendStatusMessage(pciUnit.FileName, 'Unit is read only. Cannot format ',
|
||||
mtInputError, -1, -1);
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
|
||||
fsCurrentUnitName := pciUnit.FileName;
|
||||
fcConverter.InputCode := UTF8ToUTF16(ReadFromIDE(pciUnit));
|
||||
|
Loading…
Reference in New Issue
Block a user