Skip to content

Commit

Permalink
not used
Browse files Browse the repository at this point in the history
  • Loading branch information
raspi committed Dec 31, 2019
1 parent 804dc30 commit 646d464
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 99 deletions.
21 changes: 0 additions & 21 deletions pkg/display/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,6 @@ package display

import "fmt"

/*
nearest returns nearest bits to uint8-64 len
1-7 = 8
9-15 = 16
and so on
*/
func nearest(bitWidth uint8) uint8 {
if bitWidth > 64 {
return 64
} else if bitWidth > 32 {
return 64
} else if bitWidth > 16 {
return 32
} else if bitWidth > 8 {
return 16
}
return 8
}

// header returns header for formatters of different lengths
// for example:
// - bit formatter displays 8 characters (00000000-11111111)
Expand Down
78 changes: 0 additions & 78 deletions pkg/display/nearest_test.go

This file was deleted.

0 comments on commit 646d464

Please sign in to comment.