From 1ea68d96efd361b913bb5bcd3bd6c67dd073fbda Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 23 Jan 2024 20:50:51 -0800 Subject: [PATCH] mega_double_join unused --- src/main.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main.rs b/src/main.rs index 55b23e9..cfe17e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1163,22 +1163,6 @@ impl QueryTriple{ } } //these functions can be achieved with macros, but I have not learned that yet -fn mega_double_join(query_pair:(QueryHintResult,QueryHintResult))->QueryHintResult{ - match query_pair{ - //unambiguously locate file - (Ok(f),Err(QueryResolveError::NotFound)) - |(Err(QueryResolveError::NotFound),Ok(f))=>Ok(f), - //multiple files located - (Ok(_),Err(QueryResolveError::NotFound)) - |(Err(QueryResolveError::NotFound),Ok(_)) - |(Ok(_),Ok(_))=>Err(QueryResolveError::Ambiguous), - //no files located - (Err(QueryResolveError::NotFound),Err(QueryResolveError::NotFound))=>Err(QueryResolveError::NotFound), - //other error - (Err(e),_) - |(_,Err(e))=>Err(e), - } -} fn mega_triple_join(query_triplet:(QueryHintResult,QueryHintResult,QueryHintResult))->QueryHintResult{ match query_triplet{ //unambiguously locate file