mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
remove pub fn
This commit is contained in:
parent
ff3f231155
commit
61b7be7838
3 changed files with 4 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
use libloading::Library;
|
||||
use roc_build::link::module_to_dylib;
|
||||
use roc_build::program::FunctionIterator;
|
||||
use roc_can::builtins::{builtin_defs_map, dict_hash_test_only};
|
||||
use roc_can::builtins::builtin_defs_map;
|
||||
use roc_can::def::Def;
|
||||
use roc_collections::all::{MutMap, MutSet};
|
||||
use roc_module::symbol::Symbol;
|
||||
|
@ -20,13 +20,7 @@ fn promote_expr_to_module(src: &str) -> String {
|
|||
buffer
|
||||
}
|
||||
pub fn test_builtin_defs(symbol: Symbol, var_store: &mut VarStore) -> Option<Def> {
|
||||
match builtin_defs_map(symbol, var_store) {
|
||||
Some(def) => Some(def),
|
||||
None => match symbol {
|
||||
Symbol::DICT_TEST_HASH => Some(dict_hash_test_only(symbol, var_store)),
|
||||
_ => None,
|
||||
},
|
||||
}
|
||||
builtin_defs_map(symbol, var_store)
|
||||
}
|
||||
|
||||
// this is not actually dead code, but only used by cfg_test modules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue