mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
cleanup unused code
This commit is contained in:
parent
73e0ea2e5d
commit
c6633ece7c
2 changed files with 1 additions and 9 deletions
|
@ -50,13 +50,6 @@ const TVAR3: VarId = VarId::from_u32(3);
|
||||||
const TVAR4: VarId = VarId::from_u32(4);
|
const TVAR4: VarId = VarId::from_u32(4);
|
||||||
const TOP_LEVEL_CLOSURE_VAR: VarId = VarId::from_u32(5);
|
const TOP_LEVEL_CLOSURE_VAR: VarId = VarId::from_u32(5);
|
||||||
|
|
||||||
fn single_private_tag(symbol: Symbol, type_arguments: Vec<SolvedType>) -> SolvedType {
|
|
||||||
SolvedType::TagUnion(
|
|
||||||
vec![(TagName::Private(symbol), type_arguments)],
|
|
||||||
Box::new(SolvedType::EmptyTagUnion),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
||||||
let mut types = HashMap::with_capacity_and_hasher(NUM_BUILTIN_IMPORTS, default_hasher());
|
let mut types = HashMap::with_capacity_and_hasher(NUM_BUILTIN_IMPORTS, default_hasher());
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
use crate::boolean_algebra::{self, Bool};
|
use crate::boolean_algebra::{self, Bool};
|
||||||
use crate::subs::{FlatType, Subs, VarId, VarStore, Variable};
|
use crate::subs::{FlatType, Subs, VarId, VarStore, Variable};
|
||||||
use crate::types::{Problem, RecordField, Type};
|
use crate::types::{Problem, RecordField, Type};
|
||||||
use roc_collections::all::{default_hasher, ImMap, MutMap, MutSet, SendMap};
|
use roc_collections::all::{ImMap, MutSet, SendMap};
|
||||||
use roc_module::ident::{Lowercase, TagName};
|
use roc_module::ident::{Lowercase, TagName};
|
||||||
use roc_module::symbol::Symbol;
|
use roc_module::symbol::Symbol;
|
||||||
use roc_region::all::{Located, Region};
|
use roc_region::all::{Located, Region};
|
||||||
use std::collections::HashMap;
|
|
||||||
|
|
||||||
/// A marker that a given Subs has been solved.
|
/// A marker that a given Subs has been solved.
|
||||||
/// The only way to obtain a Solved<Subs> is by running the solver on it.
|
/// The only way to obtain a Solved<Subs> is by running the solver on it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue