Remove unnessary init
authormmd-osm <mmd.osm@gmail.com>
Tue, 2 Apr 2019 18:01:59 +0000 (20:01 +0200)
committermmd-osm <mmd.osm@gmail.com>
Tue, 2 Apr 2019 18:01:59 +0000 (20:01 +0200)
lib/gpx.rb

index 7c72c72..0299f63 100644 (file)
@@ -57,7 +57,7 @@ module GPX
 
       proj = OSM::Mercator.new(min_lat, min_lon, max_lat, max_lon, width, height)
 
-      frames = Array.new(nframes,  GD2::Image::IndexedColor.new(width, height))
+      frames = []
 
       (0..nframes - 1).each do |n|
         frames[n] = GD2::Image::IndexedColor.new(width, height)