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 FileInfo() os.FileInfo
String() string String() string
// Deprecated
Bytes() []byte
} }
// A ReadableFile is a File that is readable. // A ReadableFile is a File that is readable.
@ -138,12 +135,6 @@ func (fi *FileInfo) FileInfo() os.FileInfo {
return fi.fi 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() } func (fi *FileInfo) String() string { return fi.BaseFileName() }
// We create a lot of these FileInfo objects, but there are parts of it used only // We create a lot of these FileInfo objects, but there are parts of it used only