mirror of
https://github.com/gonum/gonum.git
synced 2025-10-20 05:54:41 +08:00
graph/encoding/dot: remove linty cruft
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user