Permalink
Browse files

source: Remove deprecated File.Bytes

  • Loading branch information...
bep committed Apr 15, 2018
1 parent 1b4e0c4 commit 94c8b29c39d0c485ee91d98c08fd615c28802496
Showing with 0 additions and 9 deletions.
  1. +0 −9 source/fileInfo.go
View
@@ -76,9 +76,6 @@ type File interface {
FileInfo() os.FileInfo
String() string
// Deprecated
Bytes() []byte
}
// A ReadableFile is a File that is readable.
@@ -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

0 comments on commit 94c8b29

Please sign in to comment.