forked from StrafesNET/asset-tool
mega_double_join unused
This commit is contained in:
parent
4ced7f6210
commit
1ea68d96ef
16
src/main.rs
16
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
|
||||
|
Loading…
Reference in New Issue
Block a user