Skip to content

Commit

Permalink
tiny fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brockelmore committed Jul 10, 2024
1 parent e534e25 commit 09f4824
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 139 deletions.
8 changes: 0 additions & 8 deletions crates/graph/src/nodes/context/variables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ impl ContextNode {
return Ok(None);
};

println!("name: {full_name}");
// maybe move var into this context
let member = self.maybe_move_var(member, loc, analyzer)?;
let global_first = member.global_first_version(analyzer);
Expand All @@ -144,7 +143,6 @@ impl ContextNode {
let mut field = None;
// recursively search for the field by looking at all major versions of the member (i.e. first version
// of the variable in a context)
println!("getting field {field_name}");
while field.is_none() && curr != global_first {
field = curr.field_of_struct(field_name, analyzer)?;
if let Some(prev) = curr.previous_or_inherited_version(analyzer) {
Expand All @@ -155,13 +153,7 @@ impl ContextNode {
}

if let Some(field) = field {
println!("found field");
if let Some(ctx) = curr.maybe_ctx(analyzer) {
println!(
"had context: {}, self: {}",
ctx.path(analyzer),
self.path(analyzer)
);
if ctx != *self {
tracing::trace!(
"moving field access {} from {} to {}",
Expand Down
1 change: 0 additions & 1 deletion crates/solc-expressions/src/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ pub trait Variable: AnalyzerBackend<Expr = Expression, ExprErr = ExprErr> + Size
} else {
None
};
println!("{:?} const var: {const_var:?}", self.node(idx));

let var = if let Some(con) = const_var {
con
Expand Down
130 changes: 0 additions & 130 deletions mini.sol

This file was deleted.

0 comments on commit 09f4824

Please sign in to comment.