From 5b814d02f2e4ea8336e1555474724c84e9022de1 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 5 Mar 2009 13:31:03 -0800 Subject: delete deprecated files. deletion beats documentation for deprecation. R=rsc,gri DELTA=509 (2 added, 490 deleted, 17 changed) OCL=25737 CL=25768 --- src/lib/container/array/intarray.go | 68 ------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 src/lib/container/array/intarray.go (limited to 'src/lib/container/array/intarray.go') 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) -} -- cgit v1.3