mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
Remove deprecations <= v0.122.0 (note)
These have, once we release this, been logging ERROR for 6 minor versions.
This commit is contained in:
@@ -56,13 +56,6 @@ func (fi *File) Dir() string {
|
||||
return fi.pathToDir(fi.p().Dir())
|
||||
}
|
||||
|
||||
// Extension is an alias to Ext().
|
||||
// Deprecated: Use Ext() instead.
|
||||
func (fi *File) Extension() string {
|
||||
hugo.Deprecate(".File.Extension", "Use .File.Ext instead.", "v0.96.0")
|
||||
return fi.Ext()
|
||||
}
|
||||
|
||||
// Ext returns a file's extension without the leading period (e.g. "md").
|
||||
func (fi *File) Ext() string { return fi.p().Ext() }
|
||||
|
||||
|
Reference in New Issue
Block a user