From 94c8b29c39d0c485ee91d98c08fd615c28802496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 15 Apr 2018 14:34:34 +0200 Subject: [PATCH] source: Remove deprecated File.Bytes --- source/fileInfo.go | 9 --------- 1 file changed, 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