remove Attribute SetAttributes methods

This commit is contained in:
z7zmey
2018-01-04 22:09:48 +02:00
parent dc8808a7d6
commit 02807502d3
149 changed files with 35 additions and 1365 deletions

View File

@@ -22,15 +22,6 @@ func (n CastArray) Attributes() map[string]interface{} {
return n.attributes
}
func (n CastArray) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n CastArray) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n CastArray) Position() *node.Position {
return n.position
}

View File

@@ -22,15 +22,6 @@ func (n CastBool) Attributes() map[string]interface{} {
return n.attributes
}
func (n CastBool) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n CastBool) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n CastBool) Position() *node.Position {
return n.position
}

View File

@@ -22,15 +22,6 @@ func (n CastDouble) Attributes() map[string]interface{} {
return n.attributes
}
func (n CastDouble) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n CastDouble) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n CastDouble) Position() *node.Position {
return n.position
}

View File

@@ -22,15 +22,6 @@ func (n CastInt) Attributes() map[string]interface{} {
return n.attributes
}
func (n CastInt) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n CastInt) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n CastInt) Position() *node.Position {
return n.position
}

View File

@@ -22,15 +22,6 @@ func (n CastObject) Attributes() map[string]interface{} {
return n.attributes
}
func (n CastObject) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n CastObject) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n CastObject) Position() *node.Position {
return n.position
}

View File

@@ -22,15 +22,6 @@ func (n CastString) Attributes() map[string]interface{} {
return n.attributes
}
func (n CastString) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n CastString) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n CastString) Position() *node.Position {
return n.position
}

View File

@@ -22,15 +22,6 @@ func (n CastUnset) Attributes() map[string]interface{} {
return n.attributes
}
func (n CastUnset) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n CastUnset) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n CastUnset) Position() *node.Position {
return n.position
}