Skip to content

Commit

Permalink
chore: removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Sep 2, 2024
1 parent 2017764 commit c5755a4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/main.cpp2
Original file line number Diff line number Diff line change
Expand Up @@ -785,14 +785,6 @@ do_build: (targets: std::vector<std::string>) -> (stuff: full_build_info, exit_c
}
}

if rel_path.has_parent_path() {
src_root_dir := find_build_cpp2_dir(rel_path.parent_path());
if src_root_dir && src_root_dir* != build_cpp2_dir {
// log_warning("ignoring subproject source {} - this may change in the future", rel_path.generic_string());
// continue src_loop;
}
}

cpp2_source_files.emplace_back(rel_path);
} else if p.extension() == ".cppm" {
rel_path := fs::relative(p, fs::current_path());
Expand All @@ -802,14 +794,6 @@ do_build: (targets: std::vector<std::string>) -> (stuff: full_build_info, exit_c
}
}

if rel_path.has_parent_path() {
src_root_dir := find_build_cpp2_dir(rel_path.parent_path());
if src_root_dir && src_root_dir* != build_cpp2_dir {
// log_warning("ignoring subproject source {} - this may change in the future", rel_path.generic_string());
// continue src_loop;
}
}

cpp1_module_source_files.emplace_back(rel_path);
}
}
Expand Down

0 comments on commit c5755a4

Please sign in to comment.