-
Notifications
You must be signed in to change notification settings - Fork 728
Remove unused variables in storage.rs #9370
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
Conversation
orizi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orizi made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @AaronAjose).
crates/cairo-lang-starknet/src/plugin/storage.rs line 54 at r1 (raw file):
} let SimpleMemberGeneratedCode { storage_member, .. } = get_simple_member_code(db, &member, config, metadata);
SimpleMemberGeneratedCode seems like a useless struct now - change the code accordingly.
Code quote:
let SimpleMemberGeneratedCode { storage_member, .. } =
get_simple_member_code(db, &member, config, metadata);
Hi @orizi |
orizi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orizi reviewed 1 file and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AaronAjose).
crates/cairo-lang-starknet/src/plugin/storage.rs line 199 at r2 (raw file):
db: &'db dyn Database, member: &ast::Member<'db>, _config: &StorageMemberConfig,
remove as well.
Done. Removed the unused |
orizi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orizi reviewed 1 file and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AaronAjose).
a discussion (no related file):
@TomerStarkware for 2nd eye.
orizi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orizi made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AaronAjose).
a discussion (no related file):
as you can see - ./scripts/clippy.sh and ./scripts/rust_fmt.sh fails.
please make sure to checkout and run both.
TomerStarkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TomerStarkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AaronAjose).
|
Fixed CI issues (removed unused imports: |
orizi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orizi reviewed 1 file and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AaronAjose).
Removes three unused variables (
members_struct_code,members_struct_code_mut,members_init_code) that were created, populated, and passed toRewriteNode::interpolate_patchedbut never referenced in the template string (lines 80-116).The template only uses
$storage_base_code$,$storage_struct_members$,$substorage_members_struct_code$, and$substorage_members_init_code$— the three removed variables had no corresponding placeholders.