Skip to content

Commit 786ab99

Browse files
committed
Kill dead code.
1 parent 4c2a6d8 commit 786ab99

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

augmentedtree/atree.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ func newNode(interval Interval, min, max int64, dimension uint64) *node {
105105
}
106106
if interval != nil {
107107
itn.id = interval.ID()
108-
//itn.low = interval.LowAtDimension(dimension)
109-
//itn.high = interval.HighAtDimension(dimension)
110108
}
111109

112110
return itn

augmentedtree/mock_test.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,6 @@ func (mi mockInterval) ID() uint64 {
5050
return mi.id
5151
}
5252

53-
func (mi *mockInterval) InsertAtDimension(dimension int, index, count int64) {
54-
d := mi.dimensions[dimension-1]
55-
if index <= d.low {
56-
d.low += count
57-
if d.low < index {
58-
d.low = index
59-
}
60-
}
61-
62-
if index <= d.high {
63-
d.high += count
64-
if d.high < index {
65-
d.high = index
66-
}
67-
}
68-
}
69-
7053
func constructSingleDimensionInterval(low, high int64, id uint64) *mockInterval {
7154
return &mockInterval{[]*dimension{&dimension{low: low, high: high}}, id}
7255
}

0 commit comments

Comments
 (0)