mirror of
https://github.com/gonum/gonum.git
synced 2025-10-18 13:10:47 +08:00
graph/encoding/dot: remove linty cruft
This commit is contained in:
@@ -135,8 +135,6 @@ type printer struct {
|
||||
prefix string
|
||||
indent string
|
||||
depth int
|
||||
|
||||
err error
|
||||
}
|
||||
|
||||
type edge struct {
|
||||
@@ -291,7 +289,7 @@ func (p *simpleGraphPrinter) print(g graph.Graph, name string, needsIndent, isSu
|
||||
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)
|
||||
if needsIndent {
|
||||
for i := 0; i < p.depth; i++ {
|
||||
@@ -316,7 +314,6 @@ func (p *printer) printFrontMatter(name string, needsIndent, isSubgraph, isDirec
|
||||
}
|
||||
|
||||
p.openBlock(" {")
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *printer) writeNode(n graph.Node) {
|
||||
|
Reference in New Issue
Block a user