Skip to content

Commit

Permalink
Drop redeclaration of sizeOfPtr (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdangeti authored Nov 1, 2023
1 parent e66e82f commit 315ab2b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vector_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ import (
"reflect"
)

var sizeOfPtr int
var reflectStaticSizeVectorDoc int

func init() {
var ptr *int
sizeOfPtr = int(reflect.TypeOf(ptr).Size())

var vd VectorDoc
reflectStaticSizeVectorDoc = int(reflect.TypeOf(vd).Size())
}
Expand Down

0 comments on commit 315ab2b

Please sign in to comment.