mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
source: Remove deprecated File.Bytes
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user