Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-15 15:34:34 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-15 15:34:34 +0300
commit94c8b29c39d0c485ee91d98c08fd615c28802496 (patch)
tree81c758cc6c7ca6292f2f9c1a746c994f778ac633 /source
parent1b4e0c4161fb631add62e77f494a7e62c3619020 (diff)
source: Remove deprecated File.Bytes
Diffstat (limited to 'source')
-rw-r--r--source/fileInfo.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/source/fileInfo.go b/source/fileInfo.go
index 412d64050..9adb96df4 100644
--- a/source/fileInfo.go
+++ b/source/fileInfo.go
@@ -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