diff options
| author | Rob Pike <r@golang.org> | 2009-03-05 13:31:03 -0800 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-03-05 13:31:03 -0800 |
| commit | 5b814d02f2e4ea8336e1555474724c84e9022de1 (patch) | |
| tree | 8260a6a0a0b9e123396885902c49d1856c293c4a /src/lib/container/array/intarray.go | |
| parent | dfc3910afabf5f9df2ba7b3924b30347ce210b1c (diff) | |
| download | go-5b814d02f2e4ea8336e1555474724c84e9022de1.tar.xz | |
delete deprecated files.
deletion beats documentation for deprecation.
R=rsc,gri
DELTA=509 (2 added, 490 deleted, 17 changed)
OCL=25737
CL=25768
Diffstat (limited to 'src/lib/container/array/intarray.go')
| -rw-r--r-- | src/lib/container/array/intarray.go | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/lib/container/array/intarray.go b/src/lib/container/array/intarray.go deleted file mode 100644 index 5f9549cfeb..0000000000 --- a/src/lib/container/array/intarray.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2009 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. - -// -// *** DEPRECATED PACKAGE - USE package vector INSTEAD *** -// - -package array - -import "array" - -type IntArray struct { - // TODO do not export field - array.Array; -} - - -func (p *IntArray) Init(len int) *IntArray { - p.Array.Init(len); - return p; -} - - -func NewIntArray(len int) *IntArray { - return new(IntArray).Init(len) -} - - -func (p *IntArray) At(i int) int { - return p.Array.At(i).(int) -} - - -func (p *IntArray) Set(i int, x int) { - p.Array.Set(i, x) -} - - -func (p *IntArray) Last() int { - return p.Array.Last().(int) -} - - -func (p *IntArray) Insert(i int, x int) { - p.Array.Insert(i, x) -} - - -func (p *IntArray) Delete(i int) int { - return p.Array.Delete(i).(int) -} - - -func (p *IntArray) Push(x int) { - p.Array.Push(x) -} - - -func (p *IntArray) Pop() int { - return p.Array.Pop().(int) -} - - -// SortInterface support -func (p *IntArray) Less(i, j int) bool { - return p.At(i) < p.At(j) -} |
