Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTILS: remove unused code (files manipulations) #6894

Closed
wants to merge 1 commit into from

Conversation

alexey-tikhonov
Copy link
Member

Most probably copyright notice ("This file incorporates work covered...") can also be removed as corresponding code was removed, but I'm not entirely sure.

@alexey-tikhonov alexey-tikhonov added Waiting for review no-backport This should go to target branch only. labels Aug 21, 2023
Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the patch!

@alexey-tikhonov
Copy link
Member Author

(just a rebase)

@sumit-bose
Copy link
Contributor

Most probably copyright notice ("This file incorporates work covered...") can also be removed as corresponding code was removed, but I'm not entirely sure.

Hi,

it looks like to code was taken from shadow-utils and there is still code left in functions which are still used so we should keep the notice. Compare e.g. shadow-utils' remove_tree_at() (https://github.com/shadow-maint/shadow/blob/master/libmisc/remove_tree.c#L25) with SSSD's remove_tree_with_ctx() (https://github.com/SSSD/sssd/blob/master/src/util/files.c#L177) you can where SSSD's function got its inspiration.

bye,
Sumit

Copy link
Contributor

@sumit-bose sumit-bose left a comment

Choose a reason for hiding this comment

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

Hi,

thanks for the patch, ACK.

bye,
Sumit

@alexey-tikhonov
Copy link
Member Author

Pushed PR: #6894

  • master
    • 15a2213 - UTILS: remove unused code (files manipulations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport This should go to target branch only. Pushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants