shithub: hugo

Download patch

ref: 94c8b29c39d0c485ee91d98c08fd615c28802496
parent: 1b4e0c4161fb631add62e77f494a7e62c3619020
author: Bjørn Erik Pedersen <[email protected]>
date: Sun Apr 15 10:34:34 EDT 2018

source: Remove deprecated File.Bytes

--- a/source/fileInfo.go
+++ b/source/fileInfo.go
@@ -76,9 +76,6 @@
 	FileInfo() os.FileInfo
 
 	String() string
-
-	// Deprecated
-	Bytes() []byte
 }
 
 // A ReadableFile is a File that is readable.
@@ -136,12 +133,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() }