source: Remove deprecated File.Bytes

This commit is contained in:
Bjørn Erik Pedersen 2018-04-15 14:34:34 +02:00
parent 1b4e0c4161
commit 94c8b29c39
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F

View File

@ -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