DEADSOFTWARE

Cleanup: Eliminate warnings and hints
[d2df-editor.git] / src / editor / f_addresource_texture.pas
index 1402b13328d1469f0033c5112bc7aced072c49cb..f3b3fade582900933aa608f587fe3c23e9479b12 100644 (file)
@@ -240,9 +240,7 @@ var
   ii:         PByte;
   Width,
   Height:     Integer;
-  ColorDepth: Integer;
-  ImageSize:  Integer;
-  i, x, y:    Integer;
+  x, y:       Integer;
   BitMap:     TBitMap;
 
 begin
@@ -254,8 +252,6 @@ begin
 
   Width  := img.width;
   Height := img.height;
-  ColorDepth := 24;
-  ImageSize  := Width*Height*(ColorDepth div 8);
 
   BitMap := TBitMap.Create();
   BitMap.PixelFormat := pf24bit;