simplify pathfinder

This commit is contained in:
Arceliar 2020-11-07 12:08:01 -06:00
parent b5cd40b801
commit 994c26e5f7
4 changed files with 18 additions and 18 deletions

View file

@ -644,7 +644,7 @@ func (t *lookupTable) lookup(ports []switchPort) switchPort {
return here.port
}
func (t *lookupTable) getPorts(coords []byte) []switchPort {
func switch_getPorts(coords []byte) []switchPort {
var ports []switchPort
var offset int
for offset < len(coords) {