mirror of
https://github.com/golang/go
synced 2024-11-22 06:44:40 -07:00
- removed double-declaration of len()
R=r OCL=17463 CL=17463
This commit is contained in:
parent
7c7a525d18
commit
a11d5aecb8
@ -190,11 +190,6 @@ func (obj *Object) Copy() *Object {
|
||||
// ----------------------------------------------------------------------------
|
||||
// List methods
|
||||
|
||||
func (L* List) len_() int {
|
||||
return L.len_;
|
||||
}
|
||||
|
||||
|
||||
func (L *List) at(i int) *Elem {
|
||||
if i < 0 || L.len_ <= i {
|
||||
panic("index out of bounds");
|
||||
|
Loading…
Reference in New Issue
Block a user