Remove some dead code in upload.go (#1920)

## Description

Code was missed when switching to having BackupOp supply the OwnersCats for a backup.

## Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No 

## Type of change

- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🐹 Trivial/Minor

## Issue(s)

* #1781 

## Test Plan

- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
This commit is contained in:
ashmrtn 2022-12-23 11:57:49 -08:00 committed by GitHub
parent 35c1b10912
commit a4791af7bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -575,10 +575,6 @@ func inflateCollectionTree(
// Temporary variable just to track the things that have been marked as
// changed while keeping a reference to their path.
changedPaths := []path.Path{}
ownerCats := &OwnersCats{
ResourceOwners: make(map[string]struct{}),
ServiceCats: make(map[string]ServiceCat),
}
for _, s := range collections {
switch s.State() {
@ -621,10 +617,6 @@ func inflateCollectionTree(
)
}
serviceCat := serviceCatTag(s.FullPath())
ownerCats.ServiceCats[serviceCat] = ServiceCat{}
ownerCats.ResourceOwners[s.FullPath().ResourceOwner()] = struct{}{}
// Make sure there's only a single collection adding items for any given
// path in the new hierarchy.
if node.collection != nil {