Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <[email protected]>
  • Loading branch information
cody-littley committed Oct 24, 2024
1 parent a2bb06f commit 95b9d75
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions relay/dataplane/fragment.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (
"strings"
)

// TODO unit test these methods

// GetFragmentCount returns the number of fragments that a file of the given size will be broken into.
func GetFragmentCount(fileSize int, fragmentSize int) int {
if fileSize < fragmentSize {
Expand Down Expand Up @@ -88,9 +86,6 @@ func RecombineFragments(fragments []*Fragment) ([]byte, error) {

// Sort the fragments by index
sort.Slice(fragments, func(i, j int) bool {
if fragments == nil || fragments[i] == nil || fragments[j] == nil {
return false // TODO
}
return fragments[i].Index < fragments[j].Index
})

Expand Down

0 comments on commit 95b9d75

Please sign in to comment.