Remove extra To*Ptr functions.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/395d84a6 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/395d84a6 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/395d84a6 Branch: refs/heads/master Commit: 395d84a68114e2a294d15e861af1951963e15216 Parents: 85f3cd6 Author: Marvin Humphrey <[email protected]> Authored: Sat Apr 4 14:48:58 2015 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Sat Apr 4 17:51:29 2015 -0700 ---------------------------------------------------------------------- go/lucy/analysis.go | 5 ----- go/lucy/plan.go | 4 ---- go/lucy/search.go | 6 ------ 3 files changed, 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/395d84a6/go/lucy/analysis.go ---------------------------------------------------------------------- diff --git a/go/lucy/analysis.go b/go/lucy/analysis.go index df3f341..84b8a72 100644 --- a/go/lucy/analysis.go +++ b/go/lucy/analysis.go @@ -28,7 +28,6 @@ import "git-wip-us.apache.org/repos/asf/lucy-clownfish.git/runtime/go/clownfish" type Analyzer interface { clownfish.Obj - ToAnalyzerPtr() uintptr } type implAnalyzer struct { @@ -63,7 +62,3 @@ func (obj *implEasyAnalyzer) finalize() { func (obj *implEasyAnalyzer) ToPtr() uintptr { return uintptr(unsafe.Pointer(obj.ref)) } - -func (obj *implEasyAnalyzer) ToAnalyzerPtr() uintptr { - return obj.ToPtr() -} http://git-wip-us.apache.org/repos/asf/lucy/blob/395d84a6/go/lucy/plan.go ---------------------------------------------------------------------- diff --git a/go/lucy/plan.go b/go/lucy/plan.go index e8dff12..618acd7 100644 --- a/go/lucy/plan.go +++ b/go/lucy/plan.go @@ -37,7 +37,6 @@ type implSchema struct { type FieldType interface { clownfish.Obj - ToFieldTypePtr() uintptr } type implFieldType struct { @@ -100,6 +99,3 @@ func (obj *implFullTextType) ToPtr() uintptr { return uintptr(unsafe.Pointer(obj.ref)) } -func (obj *implFullTextType) ToFieldTypePtr() uintptr { - return obj.ToPtr() -} http://git-wip-us.apache.org/repos/asf/lucy/blob/395d84a6/go/lucy/search.go ---------------------------------------------------------------------- diff --git a/go/lucy/search.go b/go/lucy/search.go index aa68cec..182074d 100644 --- a/go/lucy/search.go +++ b/go/lucy/search.go @@ -37,7 +37,6 @@ import "git-wip-us.apache.org/repos/asf/lucy-clownfish.git/runtime/go/clownfish" type Query interface { clownfish.Obj - ToQueryPtr() uintptr } type implQuery struct { @@ -46,7 +45,6 @@ type implQuery struct { type Searcher interface { clownfish.Obj - ToSearcherPtr() uintptr Hits(query interface{}, offset uint32, numWanted uint32, sortSpec SortSpec) (Hits, error) Close() error } @@ -115,10 +113,6 @@ func (obj *implIndexSearcher) ToPtr() uintptr { return uintptr(unsafe.Pointer(obj.ref)) } -func (obj *implIndexSearcher) ToSearcherPtr() uintptr { - return obj.ToPtr() -} - func (obj *implIndexSearcher) Hits(query interface{}, offset uint32, numWanted uint32, sortSpec SortSpec) (hits Hits, err error) { var sortSpecC *C.lucy_SortSpec
