mirror of
https://github.com/golang/go
synced 2024-11-18 08:54:45 -07:00
cmd/goyacc: remove unused functions
Found with honnef.co/go/tools/cmd/unused. Change-Id: Ie7ee9f687bcec1faa40c890a84666ef6c27d9b77 Reviewed-on: https://go-review.googlesource.com/38176 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
b282a57667
commit
43bc42d6f5
@ -1264,18 +1264,6 @@ l1:
|
||||
return nl
|
||||
}
|
||||
|
||||
func dumpprod(curprod []int, max int) {
|
||||
fmt.Printf("\n")
|
||||
for i := 0; i < max; i++ {
|
||||
p := curprod[i]
|
||||
if p < 0 {
|
||||
fmt.Printf("[%v] %v\n", i, p)
|
||||
} else {
|
||||
fmt.Printf("[%v] %v\n", i, symnam(p))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// copy action to the next ; or closing }
|
||||
//
|
||||
@ -1564,21 +1552,6 @@ func cpres() {
|
||||
}
|
||||
}
|
||||
|
||||
func dumppres() {
|
||||
for i := 0; i <= nnonter; i++ {
|
||||
fmt.Printf("nonterm %d\n", i)
|
||||
curres := pres[i]
|
||||
for j := 0; j < len(curres); j++ {
|
||||
fmt.Printf("\tproduction %d:", j)
|
||||
prd := curres[j]
|
||||
for k := 0; k < len(prd); k++ {
|
||||
fmt.Printf(" %d", prd[k])
|
||||
}
|
||||
fmt.Print("\n")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// mark nonterminals which derive the empty string
|
||||
// also, look for nonterminals which don't derive any token strings
|
||||
@ -1665,14 +1638,6 @@ again:
|
||||
}
|
||||
}
|
||||
|
||||
func dumpempty() {
|
||||
for i := 0; i <= nnonter; i++ {
|
||||
if pempty[i] == EMPTY {
|
||||
fmt.Printf("non-term %d %s matches empty\n", i, symnam(i+NTBASE))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// compute an array with the first of nonterminals
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user