mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
source: Remove deprecated File.Bytes
This commit is contained in:
parent
1b4e0c4161
commit
94c8b29c39
1 changed files with 0 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue