Skip to content

Commit

Permalink
refactor: remove unused tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed May 2, 2024
1 parent 6432bf3 commit 8490fbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
7 changes: 1 addition & 6 deletions matching/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ pub fn calculate_matchings<'a>(

#[cfg(test)]
mod tests {
use matching_handlers::MatchingHandlers;
use model::{cst_node::Terminal, CSTNode, Language, Point};
use model::{cst_node::Terminal, CSTNode, Point};

use crate::{
calculate_matchings, matching_configuration::MatchingConfiguration, MatchingEntry,
Expand All @@ -78,7 +77,6 @@ mod tests {
is_block_end_delimiter: false,
});

let binding = MatchingHandlers::from(Language::Java);
let matching_configuration = MatchingConfiguration::default();
let matchings = calculate_matchings(&left, &right, &matching_configuration);

Expand Down Expand Up @@ -107,7 +105,6 @@ mod tests {
is_block_end_delimiter: false,
});

let binding = MatchingHandlers::from(Language::Java);
let matching_configuration = MatchingConfiguration::default();
let matchings = calculate_matchings(&left, &right, &matching_configuration);

Expand Down Expand Up @@ -136,7 +133,6 @@ mod tests {
is_block_end_delimiter: false,
});

let binding = MatchingHandlers::from(Language::Java);
let matching_configuration = MatchingConfiguration::default();
let matchings = calculate_matchings(&left, &right, &matching_configuration);

Expand Down Expand Up @@ -165,7 +161,6 @@ mod tests {
is_block_end_delimiter: false,
});

let binding = MatchingHandlers::from(Language::Java);
let matching_configuration = MatchingConfiguration::default();
let matchings = calculate_matchings(&left, &right, &matching_configuration);

Expand Down
6 changes: 1 addition & 5 deletions merge/src/ordered_merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,7 @@ pub fn ordered_merge<'a>(
mod tests {
use std::vec;

use matching::{
matching_configuration::{self, MatchingConfiguration},
ordered, Matchings,
};
use matching_handlers::MatchingHandlers;
use matching::{matching_configuration::MatchingConfiguration, ordered, Matchings};
use model::{cst_node::NonTerminal, cst_node::Terminal, CSTNode, Language, Point};

use crate::{MergeError, MergedCSTNode};
Expand Down
6 changes: 1 addition & 5 deletions merge/src/unordered_merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,8 @@ pub fn unordered_merge<'a>(
#[cfg(test)]
mod tests {
use matching::{
matching_configuration::{self, MatchingConfiguration},
unordered::calculate_matchings,
Matchings,
matching_configuration::MatchingConfiguration, unordered::calculate_matchings, Matchings,
};
use matching_handlers::MatchingHandlers;
use model::{
cst_node::{NonTerminal, Terminal},
CSTNode, Language, Point,
Expand All @@ -159,7 +156,6 @@ mod tests {
parent_b: &CSTNode,
expected_merge: &MergedCSTNode,
) -> Result<(), MergeError> {
let matching_handlers = MatchingHandlers::from(Language::Java);
let matching_configuration = MatchingConfiguration::from(Language::Java);

let matchings_base_parent_a = calculate_matchings(base, parent_a, &matching_configuration);
Expand Down

0 comments on commit 8490fbf

Please sign in to comment.