Skip to content

Commit

Permalink
source: Remove deprecated File.Bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Apr 15, 2018
1 parent 1b4e0c4 commit 94c8b29
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions source/fileInfo.go
Expand Up @@ -76,9 +76,6 @@ type File interface {
FileInfo() os.FileInfo

String() string

// Deprecated
Bytes() []byte
}

// A ReadableFile is a File that is readable.
Expand Down Expand Up @@ -138,12 +135,6 @@ func (fi *FileInfo) FileInfo() os.FileInfo {
return fi.fi
}

func (fi *FileInfo) Bytes() []byte {
// Remove in Hugo 0.38
helpers.Deprecated("File", "Bytes", "", true)
return []byte("")
}

func (fi *FileInfo) String() string { return fi.BaseFileName() }

// We create a lot of these FileInfo objects, but there are parts of it used only
Expand Down

0 comments on commit 94c8b29

Please sign in to comment.