mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03: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:
parent
f7fc6ccd59
commit
ad43d137d5
16 changed files with 7 additions and 287 deletions
|
@ -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() }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue