Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack committed Jan 29, 2024
1 parent aeecfc7 commit fc2152e
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions typechecker/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,29 +401,6 @@ mod tests {
use insta::glob;

use super::*;

#[allow(dead_code)]
fn snapshot_symbol_table(source: &str) -> String {
let _ = env_logger::builder()
.filter_level(log::LevelFilter::Debug)
.is_test(true)
.try_init();
let mut manager = BuildManager::new(
vec![BuildSource {
path: PathBuf::from("test.py"),
module: String::from("test"),
source: source.to_string(),
followed: false,
}],
Settings::test_settings(),
);
manager.build();

let module = manager.modules.values().last().unwrap();

format!("{}", module.get_symbol_table())
}

#[test]
fn test_symbol_table() {
glob!("../test_data/inputs/", "symbol_table/*.py", |path| {
Expand Down

0 comments on commit fc2152e

Please sign in to comment.