remove argument from load_and_typecheck

This commit is contained in:
Folkert 2022-12-24 14:37:48 +01:00
parent d6c32ded7d
commit 92da3973e7
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
6 changed files with 7 additions and 26 deletions

View file

@ -138,7 +138,6 @@ pub fn load_and_monomorphize<'a>(
pub fn load_and_typecheck<'a>(
arena: &'a Bump,
filename: PathBuf,
exposed_types: ExposedByModule,
roc_cache_dir: RocCacheDir<'_>,
load_config: LoadConfig,
) -> Result<LoadedModule, LoadingProblem<'a>> {
@ -152,6 +151,8 @@ pub fn load_and_typecheck<'a>(
load_config.palette,
)?;
let exposed_types = ExposedByModule::default();
match load(arena, load_start, exposed_types, roc_cache_dir, load_config)? {
Monomorphized(_) => unreachable!(""),
TypeChecked(module) => Ok(module),