From 1fd19170de0e30d771df54fff7557f870b2e3c14 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 29 Jun 2009 15:13:56 -0700 Subject: make use of forward method declaration R=r DELTA=11 (0 added, 6 deleted, 5 changed) OCL=30862 CL=30870 --- src/pkg/os/file.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/pkg/os/file.go') diff --git a/src/pkg/os/file.go b/src/pkg/os/file.go index 8c76735fb..952348307 100644 --- a/src/pkg/os/file.go +++ b/src/pkg/os/file.go @@ -257,18 +257,12 @@ func Lstat(name string) (dir *Dir, err Error) { return dirFromStat(name, new(Dir), &stat, &stat), nil } -// Readdirnames has a non-portable implemenation so its code is separated into an -// operating-system-dependent file. -func readdirnames(file *File, count int) (names []string, err Error) - // Readdirnames reads the contents of the directory associated with file and // returns an array of up to count names, in directory order. Subsequent // calls on the same file will yield further names. // A negative count means to read until EOF. // Readdirnames returns the array and an Error, if any. -func (file *File) Readdirnames(count int) (names []string, err Error) { - return readdirnames(file, count); -} +func (file *File) Readdirnames(count int) (names []string, err Error) // Readdir reads the contents of the directory associated with file and // returns an array of up to count Dir structures, as would be returned -- cgit v1.2.3