From 95b9d75ece6bf502987660ae1d63b3949e299ac9 Mon Sep 17 00:00:00 2001 From: Cody Littley Date: Thu, 24 Oct 2024 12:17:44 -0500 Subject: [PATCH] Cleanup. Signed-off-by: Cody Littley --- relay/dataplane/fragment.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/relay/dataplane/fragment.go b/relay/dataplane/fragment.go index f6830cc3f..1dadc6b8a 100644 --- a/relay/dataplane/fragment.go +++ b/relay/dataplane/fragment.go @@ -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 { @@ -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 })