diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-04-15 14:34:34 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-04-15 14:34:34 +0200 |
commit | 94c8b29c39d0c485ee91d98c08fd615c28802496 (patch) | |
tree | 81c758cc6c7ca6292f2f9c1a746c994f778ac633 | |
parent | 1b4e0c4161fb631add62e77f494a7e62c3619020 (diff) | |
download | hugo-94c8b29c39d0c485ee91d98c08fd615c28802496.tar.gz hugo-94c8b29c39d0c485ee91d98c08fd615c28802496.zip |
source: Remove deprecated File.Bytes
-rw-r--r-- | source/fileInfo.go | 9 |
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 |