Browse Source

pub/collection: don't filter elements of collection after construction as it results in confusing ux

Benton Edmondson 1 year ago
parent
commit
14d3e54c33
1 changed files with 0 additions and 9 deletions
  1. 0 9
      pub/collection.go

+ 0 - 9
pub/collection.go

@@ -165,14 +165,5 @@ func (c *Collection) harvestWithEmptyCount(amount uint, startingPoint uint, empt
 
 	wg.Wait()
 
-	n := 0
-	for _, element := range fromThisPage {
-		if element != nil {
-			fromThisPage[n] = element
-			n += 1
-		}
-	}
-	fromThisPage = fromThisPage[:n]
-
 	return append(fromThisPage, fromLaterPages...), nextCollection, nextStartingPoint
 }