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