mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Remove deprecated fields and methods for v0.15
Special thanks to @bep for his guidance and for making sure all of the Hugo themes get updated. Fixes #1172
This commit is contained in:
		
				
					committed by
					
						
						Bjørn Erik Pedersen
					
				
			
			
				
	
			
			
			
						parent
						
							b23b546a30
						
					
				
				
					commit
					252ea96d1d
				
			@@ -17,8 +17,6 @@ import (
 | 
			
		||||
	"html/template"
 | 
			
		||||
	"sync"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	"github.com/spf13/hugo/helpers"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Node struct {
 | 
			
		||||
@@ -134,24 +132,6 @@ type URLPath struct {
 | 
			
		||||
	Section   string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Url is deprecated. Will be removed in 0.15.
 | 
			
		||||
func (n *Node) Url() string {
 | 
			
		||||
	helpers.Deprecated("Node", ".Url", ".URL")
 | 
			
		||||
	return n.URL
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UrlPath is deprecated. Will be removed in 0.15.
 | 
			
		||||
func (n *Node) UrlPath() URLPath {
 | 
			
		||||
	helpers.Deprecated("Node", ".UrlPath", ".URLPath")
 | 
			
		||||
	return n.URLPath
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Url is deprecated. Will be removed in 0.15.
 | 
			
		||||
func (up URLPath) Url() string {
 | 
			
		||||
	helpers.Deprecated("URLPath", ".Url", ".URL")
 | 
			
		||||
	return up.URL
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Scratch returns the writable context associated with this Node.
 | 
			
		||||
func (n *Node) Scratch() *Scratch {
 | 
			
		||||
	if n.scratch == nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user