LCL: Remove unused code in TLazIntfImage.Assign.

git-svn-id: trunk@53056 -
This commit is contained in:
juha 2016-09-29 08:35:07 +00:00
parent 73ef3706d2
commit 39ac467fe2

View File

@ -3460,17 +3460,9 @@ begin
end;
procedure TLazIntfImage.Assign(Source: TPersistent);
var
Src: TLazIntfImage;
Desc: TRawImageDescription;
begin
if Source is TLazIntfImage then begin
Src:=TLazIntfImage(Source);
Desc:=Src.DataDescription;
Desc.Width:=0; // avoid side effects
Desc.Height:=0; // avoid side effects
DataDescription:=Src.DataDescription;
end;
if Source is TLazIntfImage then
DataDescription:=TLazIntfImage(Source).DataDescription;
inherited Assign(Source);
end;