Sorting not needed

master
Uriel Fanelli 2023-08-12 23:57:06 +02:00
parent dfb1aa070a
commit 3c185aa40f
1 changed files with 0 additions and 2 deletions

View File

@ -5,7 +5,6 @@ import (
"log"
"net"
"slices"
"sort"
"strconv"
"time"
)
@ -16,7 +15,6 @@ func (mip *AbstractMulticast) AddUniqueAndSort(hier int64) {
log.Println("Element already in the array:", hier)
} else {
mip.HierarchyArray = append(mip.HierarchyArray, hier)
sort.Slice(mip.HierarchyArray, func(i, j int) bool { return mip.HierarchyArray[i] < mip.HierarchyArray[j] })
log.Println("Here the numbers known:", mip.HierarchyArray)
}