graph/encoding/dot: remove linty cruft

This commit is contained in:
Dan Kortschak
2019-10-13 20:34:42 +10:30
parent a2e99c9265
commit 1459092b91

View File

@@ -135,8 +135,6 @@ type printer struct {
prefix string prefix string
indent string indent string
depth int depth int
err error
} }
type edge struct { type edge struct {
@@ -291,7 +289,7 @@ func (p *simpleGraphPrinter) print(g graph.Graph, name string, needsIndent, isSu
return nil return nil
} }
func (p *printer) printFrontMatter(name string, needsIndent, isSubgraph, isDirected, isStrict bool) error { func (p *printer) printFrontMatter(name string, needsIndent, isSubgraph, isDirected, isStrict bool) {
p.buf.WriteString(p.prefix) p.buf.WriteString(p.prefix)
if needsIndent { if needsIndent {
for i := 0; i < p.depth; i++ { for i := 0; i < p.depth; i++ {
@@ -316,7 +314,6 @@ func (p *printer) printFrontMatter(name string, needsIndent, isSubgraph, isDirec
} }
p.openBlock(" {") p.openBlock(" {")
return nil
} }
func (p *printer) writeNode(n graph.Node) { func (p *printer) writeNode(n graph.Node) {