Skip to content

Commit

Permalink
this is redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
H-A-M-G-E-R committed Nov 23, 2023
1 parent ecb19e1 commit dcb7a60
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions miratope-core/src/conc/faceting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2102,15 +2102,10 @@ impl Concrete {
}

let mut new_rank = ElementList::new();
let mut set = HashSet::new();

for f_i in 0..facet_vec.len() {
facet_vec[f_i][rank-1][0].subs.sort();
let subs = facet_vec[f_i][rank-1][0].subs.clone();
if !set.contains(&subs) {
new_rank.push(Element::new(subs.clone(), Superelements::new()));
set.insert(subs);
}
new_rank.push(Element::new(subs, Superelements::new()));
}
let n_r_len = new_rank.len();
ranks.push(new_rank); // facets
Expand Down

0 comments on commit dcb7a60

Please sign in to comment.