remove unused attributes fields

This commit is contained in:
z7zmey
2018-01-05 00:12:01 +02:00
parent 469db8f9e2
commit 17bca8d1dc
156 changed files with 739 additions and 996 deletions

View File

@@ -11,13 +11,8 @@ type FullyQualified struct {
func NewFullyQualified(Parts []node.Node) node.Node {
return &FullyQualified{
Name{
map[string]interface{}{},
nil,
Parts,
},
}
}
func (n FullyQualified) Attributes() map[string]interface{} {
return n.attributes
}

View File

@@ -5,21 +5,19 @@ import (
)
type Name struct {
attributes map[string]interface{}
position *node.Position
Parts []node.Node
position *node.Position
Parts []node.Node
}
func NewName(Parts []node.Node) node.Node {
return &Name{
map[string]interface{}{},
nil,
Parts,
}
}
func (n Name) Attributes() map[string]interface{} {
return n.attributes
return nil
}
func (n Name) Position() *node.Position {

View File

@@ -5,21 +5,21 @@ import (
)
type NamePart struct {
attributes map[string]interface{}
position *node.Position
position *node.Position
Value string
}
func NewNamePart(Value string) node.Node {
return &NamePart{
map[string]interface{}{
"Value": Value,
},
nil,
Value,
}
}
func (n NamePart) Attributes() map[string]interface{} {
return n.attributes
return map[string]interface{}{
"Value": n.Value,
}
}
func (n NamePart) Position() *node.Position {

View File

@@ -11,13 +11,8 @@ type Relative struct {
func NewRelative(Parts []node.Node) node.Node {
return &Relative{
Name{
map[string]interface{}{},
nil,
Parts,
},
}
}
func (n Relative) Attributes() map[string]interface{} {
return n.attributes
}