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:
parent
35c1b10912
commit
a4791af7bf
@ -575,10 +575,6 @@ func inflateCollectionTree(
|
|||||||
// Temporary variable just to track the things that have been marked as
|
// Temporary variable just to track the things that have been marked as
|
||||||
// changed while keeping a reference to their path.
|
// changed while keeping a reference to their path.
|
||||||
changedPaths := []path.Path{}
|
changedPaths := []path.Path{}
|
||||||
ownerCats := &OwnersCats{
|
|
||||||
ResourceOwners: make(map[string]struct{}),
|
|
||||||
ServiceCats: make(map[string]ServiceCat),
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, s := range collections {
|
for _, s := range collections {
|
||||||
switch s.State() {
|
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
|
// Make sure there's only a single collection adding items for any given
|
||||||
// path in the new hierarchy.
|
// path in the new hierarchy.
|
||||||
if node.collection != nil {
|
if node.collection != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user