Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Replace extraneous var with val.
Remove unused imports.
  • Loading branch information
rajadain committed Aug 30, 2017
1 parent 0164f20 commit c37560f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/src/main/scala/Geoprocessing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ trait Geoprocessing extends Utils {
lines: Seq[MultiLine]
): Map[String, Int] = {
val metadata = rasterLayers.head.metadata
var pixelGroups: TrieMap[(List[Int], TilePixel), Int] = TrieMap.empty
val pixelGroups: TrieMap[(List[Int], TilePixel), Int] = TrieMap.empty

joinCollectionLayers(rasterLayers).par
.foreach({ case (key, tiles) =>
Expand Down Expand Up @@ -223,7 +223,7 @@ trait Geoprocessing extends Utils {
// assume all the layouts are the same
val metadata = rasterLayers.head.metadata

var pixelGroups: TrieMap[List[Int], LongAdder] = TrieMap.empty
val pixelGroups: TrieMap[List[Int], LongAdder] = TrieMap.empty

joinCollectionLayers(rasterLayers).par
.foreach({ case (key, tiles) =>
Expand Down
2 changes: 0 additions & 2 deletions api/src/main/scala/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import scala.concurrent.Future
import scala.concurrent.ExecutionContext.Implicits.global

import spray.json._
import spray.json.DefaultJsonProtocol._

import geotrellis.proj4.{CRS, ConusAlbers, LatLng, WebMercator}

import geotrellis.raster._
import geotrellis.raster.rasterize._
import geotrellis.vector._
import geotrellis.vector.io._
import geotrellis.spark._
Expand Down

0 comments on commit c37560f

Please sign in to comment.