Skip to content

Commit

Permalink
remove deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Banning committed May 20, 2017
1 parent 580465b commit 09a6b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 Charles Banning <[email protected]>. All rights reserved.
Copyright (c) 2014, 2017 Charles Banning <[email protected]>. All rights reserved.

The MIT License (MIT)

Expand Down
17 changes: 1 addition & 16 deletions reverse.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2014 Charles Banning <[email protected]>. All rights reserved.
// Copyright (c) 2014, 2017 Charles Banning <[email protected]>. All rights reserved.
// See LICENSE file for terms of use.

// Package rfile reads a file in reverse - line-by-line.
Expand All @@ -19,21 +19,6 @@ type Rfile struct {
i int
}

// NewReverseFile opens a file to be read in reverse line-by-line.
//
// Deprecated: Use Open
func NewReverseFile(file string) (*Rfile, error) {
var err error
rf := new(Rfile)
if rf.fh, err = os.Open(file); err != nil {
return nil, err
}
fi, _ := rf.fh.Stat()
rf.offset = fi.Size()
rf.bufsize = 4096
return rf, nil
}

// Open returns Rfile handle to be read in reverse line-by-line.
func Open(file string) (*Rfile, error) {
var err error
Expand Down

0 comments on commit 09a6b66

Please sign in to comment.