mega_double_join unused

This commit is contained in:
Quaternions 2024-01-23 20:50:51 -08:00
parent 4ced7f6210
commit 1ea68d96ef

View File

@ -1163,22 +1163,6 @@ impl QueryTriple{
} }
} }
//these functions can be achieved with macros, but I have not learned that yet //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{ fn mega_triple_join(query_triplet:(QueryHintResult,QueryHintResult,QueryHintResult))->QueryHintResult{
match query_triplet{ match query_triplet{
//unambiguously locate file //unambiguously locate file