Skip to content

rafs: delete RafsSuperBlobs trait #421

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

Merged

Conversation

liubin
Copy link
Contributor

@liubin liubin commented May 12, 2022

method get_blobs of RafsSuperBlobs has the same signature as
get_blob_infos of RafsSuperBlock,
and RafsSuperBlock is inheritance of RafsSuperBlobs.

But the only one use of the get_blobs is based on type of
RafsSuperBlock, so RafsSuperBlobs is no meanings, it can
be deleted and replaced by get_blob_infos method.

Signed-off-by: bin liu [email protected]

method get_blobs of RafsSuperBlobs has the same signature as
get_blob_infos of RafsSuperBlock,
and RafsSuperBlock is inheritance of RafsSuperBlobs.

But the only one use of the get_blobs is based on type of
RafsSuperBlock, so RafsSuperBlobs is no meanings, it can
be deleted and replaced by get_blob_infos method.

Signed-off-by: bin liu <[email protected]>
@bergwolf
Copy link
Member

Thanks @liubin ! Looks reasonable to me. @jiangliu please confirm if there is future plan on the trait, as it is redundant right now.

@imeoer imeoer self-requested a review May 13, 2022 06:12
@jiangliu jiangliu merged commit d81a6ac into dragonflyoss:master May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants