Repository: lucy Updated Branches: refs/heads/master a4d556b2c -> 967088585
Remove now-redundant Go ctor bindings. Now that Clownfish autogenerates constructor bindings, these are not needed. Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/b2e2f8c0 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/b2e2f8c0 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/b2e2f8c0 Branch: refs/heads/master Commit: b2e2f8c0858ae931cd5e7de4dc324bbd9c3d554a Parents: a4d556b Author: Marvin Humphrey <[email protected]> Authored: Tue Jul 14 14:32:56 2015 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Mon Jul 20 14:14:07 2015 -0700 ---------------------------------------------------------------------- go/lucy/analysis.go | 32 -------------------------------- go/lucy/plan.go | 10 ---------- 2 files changed, 42 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/b2e2f8c0/go/lucy/analysis.go ---------------------------------------------------------------------- diff --git a/go/lucy/analysis.go b/go/lucy/analysis.go deleted file mode 100644 index 28cb52d..0000000 --- a/go/lucy/analysis.go +++ /dev/null @@ -1,32 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package lucy - -/* -#include "Lucy/Analysis/Analyzer.h" -#include "Lucy/Analysis/EasyAnalyzer.h" -*/ -import "C" -import "unsafe" - -import "git-wip-us.apache.org/repos/asf/lucy-clownfish.git/runtime/go/clownfish" - -func NewEasyAnalyzer(language string) EasyAnalyzer { - lang := clownfish.NewString(language) - cfObj := C.lucy_EasyAnalyzer_new((*C.cfish_String)(unsafe.Pointer(lang.TOPTR()))) - return WRAPEasyAnalyzer(unsafe.Pointer(cfObj)) -} http://git-wip-us.apache.org/repos/asf/lucy/blob/b2e2f8c0/go/lucy/plan.go ---------------------------------------------------------------------- diff --git a/go/lucy/plan.go b/go/lucy/plan.go index c11c1e0..1ebd0bf 100644 --- a/go/lucy/plan.go +++ b/go/lucy/plan.go @@ -25,11 +25,6 @@ import "unsafe" import "git-wip-us.apache.org/repos/asf/lucy-clownfish.git/runtime/go/clownfish" -func NewSchema() Schema { - cfObj := C.lucy_Schema_new() - return WRAPSchema(unsafe.Pointer(cfObj)) -} - func (obj *SchemaIMP) SpecField(field string, fieldType FieldType) { self := ((*C.lucy_Schema)(unsafe.Pointer(obj.TOPTR()))) fieldCF := clownfish.NewString(field) @@ -38,8 +33,3 @@ func (obj *SchemaIMP) SpecField(field string, fieldType FieldType) { (*C.lucy_FieldType)(unsafe.Pointer(fieldType.TOPTR()))) } -func NewFullTextType(analyzer Analyzer) FullTextType { - cfObj := C.lucy_FullTextType_new( - (*C.lucy_Analyzer)(unsafe.Pointer(analyzer.TOPTR()))) - return WRAPFullTextType(unsafe.Pointer(cfObj)) -}
