diff --git a/dgraph/cmd/counter/increment_test.go b/dgraph/cmd/counter/increment_test.go index 76e77d84034..7921832204d 100644 --- a/dgraph/cmd/counter/increment_test.go +++ b/dgraph/cmd/counter/increment_test.go @@ -35,7 +35,6 @@ import ( ) const N = 10 -const pred = "counter" func incrementInLoop(t *testing.T, dg *dgo.Dgraph, M int) int { conf := viper.New() diff --git a/graphql/admin/draining.go b/graphql/admin/draining.go index 1d42c87f84d..e5b14c44b0f 100644 --- a/graphql/admin/draining.go +++ b/graphql/admin/draining.go @@ -32,10 +32,6 @@ type drainingResolver struct { enable bool } -type drainingInput struct { - Enable bool -} - func (dr *drainingResolver) Rewrite( m schema.Mutation) (*gql.GraphQuery, []*dgoapi.Mutation, error) { glog.Info("Got draining request through GraphQL admin API") diff --git a/types/s2index_test.go b/types/s2index_test.go index 0fc6ddb547d..db0f1025e6b 100644 --- a/types/s2index_test.go +++ b/types/s2index_test.go @@ -85,18 +85,6 @@ func TestIndexCellsPoint(t *testing.T) { require.Equal(t, c.ToToken(), "808fb9f81") } -func printCells(cu s2.CellUnion) { - for _, c := range cu { - cell := s2.CellFromCellID(c) - area := EarthArea(cell.ExactArea()) - r := cell.RectBound() - top := r.Vertex(0).Distance(r.Vertex(1)) - side := r.Vertex(1).Distance(r.Vertex(2)) - fmt.Printf("Level: %d, Cell: %s, area: %s, boundary: %s x %s\n", c.Level(), c.ToToken(), - area, EarthDistance(top), EarthDistance(side)) - } -} - func TestIndexCellsPolygon(t *testing.T) { p, err := loadPolygon("testdata/zip.json") require.NoError(t, err) @@ -155,18 +143,6 @@ func TestKeyGeneratorPolygon(t *testing.T) { require.Len(t, keys, 67) } -func testCover(file string, max int) { - fmt.Printf("Testing %s with max %d\n", file, max) - p, err := loadPolygon(file) - if err != nil { - return - } - l, _ := loopFromPolygon(p.(*geom.Polygon)) - cu := coverLoop(l, MinCellLevel, MaxCellLevel, max) - printCells(cu) - printCoverAccuracy(l, cu) -} - func printCoverAccuracy(l *s2.Loop, cu s2.CellUnion) { a1 := cellUnionArea(cu) a2 := l.Area()