<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/80953c2c97557c6d2a071494e440bc8b214735c2">https://github.com/macports/macports-base/commit/80953c2c97557c6d2a071494e440bc8b214735c2</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 80953c2c97557c6d2a071494e440bc8b214735c2
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Fri Dec 2 18:55:41 2016 +1100
<span style='display:block; white-space:pre;color:#404040;'> Simplify ditem_key arg passing
</span>---
src/macports1.0/macports_dlist.tcl | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/macports_dlist.tcl b/src/macports1.0/macports_dlist.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 8ab0a70..5786ecf 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/macports_dlist.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/macports_dlist.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -158,14 +158,7 @@ proc ditem_delete {ditem} {
</span> # value - optional value to set the key to
proc ditem_key {ditem args} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set nbargs [llength $args]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$nbargs > 1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [macports_dlist::ditem_key $ditem [lindex $args 0] [lindex $args 1]]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {$nbargs == 1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [macports_dlist::ditem_key $ditem [lindex $args 0]]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [macports_dlist::ditem_key $ditem]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return [macports_dlist::ditem_key $ditem {*}$args]
</span> }
# ditem_append
</pre><pre style='margin:0'>
</pre>