Skip to content

Commit

Permalink
clear out some unneeded stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmach committed Apr 22, 2017
1 parent 86b0404 commit 36daaf6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion geo/point.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (p Point) GeoHash(precision int) string {

hash := p.GeoHashInt64(5 * precision)
for i := 1; i <= precision; i++ {
result[precision-i] = byte(base32[hash&0x1F])
result[precision-i] = base32[hash&0x1F]
hash >>= 5
}

Expand Down
7 changes: 0 additions & 7 deletions planar/point_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ package planar

import "testing"

var citiesGeoHash = [][3]interface{}{
{57.09700, 9.85000, "u4phb4hw"},
{49.03000, -122.32000, "c29nbt9k3q"},
{39.23500, -76.17490, "dqcz4we0k"},
{-34.7666, 138.53670, "r1fd0qzmg"},
}

func TestNewPoint(t *testing.T) {
p := NewPoint(1, 2)
if p.X() != 1 {
Expand Down
12 changes: 0 additions & 12 deletions project/define.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@ package project

import "math"

//MinLatitude is the minimum possible latitude
var minLatitude = deg2rad(-90)

//MaxLatitude is the maxiumum possible latitude
var maxLatitude = deg2rad(90)

//MinLongitude is the minimum possible longitude
var minLongitude = deg2rad(-180)

//MaxLongitude is the maxiumum possible longitude
var maxLongitude = deg2rad(180)

func deg2rad(d float64) float64 {
return d * math.Pi / 180.0
}
Expand Down

0 comments on commit 36daaf6

Please sign in to comment.