Skip to content

Commit

Permalink
delete unnecessary func
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Nov 15, 2024
1 parent c9ce3c4 commit 52dfaf3
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions _ark/dx/ui/dx_funcs.dta
Original file line number Diff line number Diff line change
Expand Up @@ -46,53 +46,4 @@
{ui pop_screen}
)
}
}

; rewritten compare function for sorting by source
{func dx_icon_already_compared ($lhs $rhs $icon $icon_compared)
{cond
({&& {== {$lhs get_icon} $icon} {! {== {$rhs get_icon} $icon}}}
{if_else {== {$rhs get_icon} $icon_compared}
1
-1 ; bring what we already sorted to the top (left side)
}
)
({&& {! {== {$lhs get_icon} $icon}} {== {$rhs get_icon} $icon}}
{if_else {== {$lhs get_icon} $icon_compared}
-1
1 ; bring what we already sorted to the top (right side)
}
)
}
}


{func dx_icon_compare ($lhs $rhs $icon $already_compared)
{foreach $icon_compared $already_compared
{dx_icon_already_compared $lhs $rhs $icon $icon_compared} ;ordering fix
}
{cond
({&& {! {== {$lhs get_icon} $icon}} {! {== {$rhs get_icon} $icon}}} ; ignore
; {$this
; cmp
; $lhs
; $rhs
; (kSTName)
; }
)
({&& {== {$lhs get_icon} $icon} {! {== {$rhs get_icon} $icon}}}
-1 ; bring what we want to sort to the top (left side)
)
({&& {! {== {$lhs get_icon} $icon}} {== {$rhs get_icon} $icon}}
1 ; bring what we want to sort to the top (right side)
)
({&& {== {$lhs get_icon} $icon} {== {$rhs get_icon} $icon}} ; sort matches by song game
{$this
cmp
$lhs
$rhs
(kSTName)
}
)
}
}

0 comments on commit 52dfaf3

Please sign in to comment.