Skip to content

Commit

Permalink
periph-info: remove legacy pre-v3 code
Browse files Browse the repository at this point in the history
No functional change.

Forgot to clean up when v3 was released.
  • Loading branch information
maruel committed Nov 12, 2018
1 parent ab4baba commit 785d827
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions cmd/periph-info/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ import (
"periph.io/x/periph"
)

// driverAfter is an optional function.
// TODO(maruel): Remove in v3.
type driverAfter interface {
After() []string
}

func printDrivers(drivers []periph.DriverFailure) {
if len(drivers) == 0 {
fmt.Print(" <none>\n")
Expand Down Expand Up @@ -66,10 +60,7 @@ func mainImpl() error {
}
for _, d := range state.Loaded {
p := d.Prerequisites()
var a []string
if da, ok := d.(driverAfter); ok {
a = da.After()
}
a := d.After()
if len(p) == 0 && len(a) == 0 {
fmt.Printf("- %s\n", d)
continue
Expand Down

0 comments on commit 785d827

Please sign in to comment.