Skip to content

Commit 2fb3433

Browse files
committed
remove dead code
1 parent fdaa393 commit 2fb3433

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

chalk-recursive/src/recursive.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,6 @@ impl<I: Interner> fmt::Debug for RecursiveSolver<I> {
6060
}
6161
}
6262

63-
/// An extension trait for merging `Result`s
64-
trait MergeWith<T> {
65-
fn merge_with<F>(self, other: Self, f: F) -> Self
66-
where
67-
F: FnOnce(T, T) -> T;
68-
}
69-
70-
impl<T> MergeWith<T> for Fallible<T> {
71-
fn merge_with<F>(self: Fallible<T>, other: Fallible<T>, f: F) -> Fallible<T>
72-
where
73-
F: FnOnce(T, T) -> T,
74-
{
75-
match (self, other) {
76-
(Err(_), Ok(v)) | (Ok(v), Err(_)) => Ok(v),
77-
(Ok(v1), Ok(v2)) => Ok(f(v1, v2)),
78-
(Err(_), Err(e)) => Err(e),
79-
}
80-
}
81-
}
82-
8363
impl<I: Interner> RecursiveContext<I> {
8464
pub fn new(
8565
overflow_depth: usize,

0 commit comments

Comments
 (0)