Skip to content

refactor!: remove unused helpers from collections, lazy, pkg/utils, pkg/node and logging - #2151

Merged
mbrandenburger merged 1 commit into
hyperledger-labs:mainfrom
SaidAltury-ibm:fix/2014-remove-unused-helpers
Oct 19, 2026
Merged

mbrandenburger merged 1 commit into
hyperledger-labs:mainfrom
SaidAltury-ibm:fix/2014-remove-unused-helpers

Conversation

@SaidAltury-ibm

Copy link
Copy Markdown
Contributor

These exported helpers have no callers in any module.

BREAKING CHANGE: the following are removed; use the listed replacements:

  • collections.CopyIterator, NewSingleIterator, Filter: iterators.Copy, iterators.From, iterators.Filter
  • collections.ContainsValue, Difference: collections/maps.ContainsValue, collections/slices.Difference
  • lazy.Getter, lazy.NewGetter: sync.OnceValues
  • utils.RetryRunner: the concrete retry runners
  • pkg/node.ExecuteCallbackFunc: func() error
  • logging.Named: a custom floggingtest Option

Fixes #2014

@SaidAltury-ibm SaidAltury-ibm added this to the 26Q4 milestone Oct 19, 2026
@SaidAltury-ibm SaidAltury-ibm self-assigned this Oct 19, 2026
@SaidAltury-ibm SaidAltury-ibm added the status: needs review The pull request is ready for maintainer review label Oct 19, 2026
@github-actions

Copy link
Copy Markdown

Hey @SaidAltury-ibm 👋 thanks for the PR!
I'm your friendly PR Helper Bot 🤖 and I'll be riding shotgun on this one, keeping track of your PR's status to help you get it approved and merged.

This comment updates automatically as you push changes -- think of it as your PR's live scoreboard!
Here's the latest:


PR Checks

✅ DCO Sign-off -- All commits have valid sign-offs. Nice work!


✅ GPG Signature -- All commits have verified GPG signatures. Locked and loaded!


✅ Merge Conflicts -- No merge conflicts detected. Smooth sailing!


✅ Issue Link -- Linked to #2014 (assigned to you).


🎉 All checks passed! Your PR is ready for review. Great job!

@mbrandenburger mbrandenburger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SaidAltury-ibm for working on this. I believe there is little tweak we have to do on the doc wording.

Comment thread platform/common/utils/lazy/holder.go Resolved
…kg/node and logging

These exported helpers have no callers in any module.

BREAKING CHANGE: the following are removed; use the listed replacements:
- collections.CopyIterator, NewSingleIterator, Filter: iterators.Copy, iterators.From, iterators.Filter
- collections.ContainsValue, Difference: collections/maps.ContainsValue, collections/slices.Difference
- lazy.Getter, lazy.NewGetter: sync.OnceValues
- utils.RetryRunner: the concrete retry runners
- pkg/node.ExecuteCallbackFunc: func() error
- logging.Named: a custom floggingtest Option

Fixes hyperledger-labs#2014

Signed-off-by: Said Altury <Said.Altury@ibm.com>
@SaidAltury-ibm
SaidAltury-ibm force-pushed the fix/2014-remove-unused-helpers branch from c362d39 to 062f882 Compare October 19, 2026 13:55
@mbrandenburger
mbrandenburger merged commit 922c892 into hyperledger-labs:main Oct 19, 2026
rgowrishankar pushed a commit to rgowrishankar/fabric-smart-client that referenced this pull request Oct 20, 2026
…kg/node and logging (hyperledger-labs#2151)

These exported helpers have no callers in any module.

BREAKING CHANGE: the following are removed; use the listed replacements:
- collections.CopyIterator, NewSingleIterator, Filter: iterators.Copy, iterators.From, iterators.Filter
- collections.ContainsValue, Difference: collections/maps.ContainsValue, collections/slices.Difference
- lazy.Getter, lazy.NewGetter: sync.OnceValues
- utils.RetryRunner: the concrete retry runners
- pkg/node.ExecuteCallbackFunc: func() error
- logging.Named: a custom floggingtest Option

Fixes hyperledger-labs#2014

Signed-off-by: Said Altury <Said.Altury@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: needs review The pull request is ready for maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(common): remove unused helpers from collections, lazy, pkg/utils, pkg/node and logging

2 participants