hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 94c8b29c39d0c485ee91d98c08fd615c28802496
parent 1b4e0c4161fb631add62e77f494a7e62c3619020
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sun, 15 Apr 2018 14:34:34 +0200

source: Remove deprecated File.Bytes

Diffstat:
Msource/fileInfo.go | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git 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