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 7c72c726fd93c89e92f82353e3eb53f73a620b42..0299f63b5c01c7a5f5d871ed6d67ec1ae7e8c480 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)