mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-24 01:00:18 +01:00
Removed some dead code.
This commit is contained in:
parent
3b8faba353
commit
787fc959d0
@ -15,10 +15,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
width = 18
|
baseLevelDir = "8"
|
||||||
height = 18
|
|
||||||
baseLevelDir = "8"
|
|
||||||
yOrderCapacity = 512
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type blockPos struct {
|
type blockPos struct {
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
<script type="text/javascript" src="js/leaflet.awesome-markers.js"></script>
|
<script type="text/javascript" src="js/leaflet.awesome-markers.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
var useWebsocket = false; // Set to true if you want websocket support
|
var useWebsocket = true; // Set to true if you want websocket support
|
||||||
|
|
||||||
L.Projection.NoWrap = {
|
L.Projection.NoWrap = {
|
||||||
project: function (latlng) {
|
project: function (latlng) {
|
||||||
|
@ -145,10 +145,6 @@ func CoordToInterleaved(c Coord) (result int64) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func invert16(x int16) int16 {
|
|
||||||
return -x - 1
|
|
||||||
}
|
|
||||||
|
|
||||||
func InterleavedToCoord(pos int64) Coord {
|
func InterleavedToCoord(pos int64) Coord {
|
||||||
const end = 1 << (numBitsPerComponent + 1)
|
const end = 1 << (numBitsPerComponent + 1)
|
||||||
var x, y, z int16
|
var x, y, z int16
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
package common
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
@ -181,15 +180,6 @@ func outsiders(zmin, zmax int64, fn func(int64)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestInvert16(t *testing.T) {
|
|
||||||
if invert16(math.MaxInt16) != math.MinInt16 {
|
|
||||||
t.Errorf("invert16(max) != min\n")
|
|
||||||
}
|
|
||||||
if invert16(math.MinInt16) != math.MaxInt16 {
|
|
||||||
t.Errorf("invert16(max) != min\n")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestBigMin(t *testing.T) {
|
func TestBigMin(t *testing.T) {
|
||||||
const tries = 20
|
const tries = 20
|
||||||
for i := 0; i < tries; i++ {
|
for i := 0; i < tries; i++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user