aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/libgo/go/exp/locale/collate/export.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/libgo/go/exp/locale/collate/export.go')
-rw-r--r--gcc-4.8.1/libgo/go/exp/locale/collate/export.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/gcc-4.8.1/libgo/go/exp/locale/collate/export.go b/gcc-4.8.1/libgo/go/exp/locale/collate/export.go
deleted file mode 100644
index 8145dee25..000000000
--- a/gcc-4.8.1/libgo/go/exp/locale/collate/export.go
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2012 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package collate
-
-// Init is for internal use only.
-func Init(data interface{}) Weigher {
- init, ok := data.(tableInitializer)
- if !ok {
- return nil
- }
- t := &table{}
- loff, voff := init.FirstBlockOffsets()
- t.index.index = init.TrieIndex()
- t.index.index0 = t.index.index[blockSize*int(loff):]
- t.index.values = init.TrieValues()
- t.index.values0 = t.index.values[blockSize*int(voff):]
- t.expandElem = init.ExpandElems()
- t.contractTries = init.ContractTries()
- t.contractElem = init.ContractElems()
- t.maxContractLen = init.MaxContractLen()
- t.variableTop = init.VariableTop()
- return t
-}
-
-type tableInitializer interface {
- TrieIndex() []uint16
- TrieValues() []uint32
- FirstBlockOffsets() (lookup, value uint16)
- ExpandElems() []uint32
- ContractTries() []struct{ l, h, n, i uint8 }
- ContractElems() []uint32
- MaxContractLen() int
- VariableTop() uint32
-}