Skip to content

Commit

Permalink
kill dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Feb 1, 2025
1 parent 8126b91 commit 73f5887
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/type_system/red_terms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,6 @@ impl RedPerms {
&& (!self.leased_from.is_empty() || self.variables.iter().any(|v| env.is(&v, IsLeased)))
}

/// True if this term cannot be leased.
///
/// False means the value is not known to be not leased, not that it is leased.
pub fn is_not_leased(&self, env: &Env) -> bool {
self.is_copy(env) || self.is_owned(env)
}

/// True if this term cannot be leased.
///
/// False means the value is not known to be not leased, not that it is leased.
Expand Down

0 comments on commit 73f5887

Please sign in to comment.