<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">susumu.yata <susum****@gmail*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2015-10-15 10:49:29 +0900 (Thu, 15 Oct 2015)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed">299a9871e224345b32fac1d9c726d149438b01ed</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">grn_pat: remove a needless variable "direction"</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265f">lib/pat.c</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/pat.c (+1 -3)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1093">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1094">1094</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1095">1095</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1096">1096</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1097">1097</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1098">1098</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1099">1099</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1100">1100</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1130">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1131">1131</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1132">1132</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1133">1133</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1134">1134</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1135">1135</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1136">1136</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1137">1137</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fL1138">1138</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1093">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1094">1094</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1095">1095</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1096">1096</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1097">1097</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1098">1098</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1099">1099</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1129">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1130">1130</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1131">1131</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1132">1132</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1133">1133</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1134">1134</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1135">1135</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/299a9871e224345b32fac1d9c726d149438b01ed#diff-e8f58132837f95fac7913a81cae2265fR1136">1136</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -1094,7 +1094,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">_grn_pat_del(grn_ctx *ctx, grn_pat *pat, const char *key, uint32_t key_size, int</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_table_delete_optarg *optarg)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_pat_delinfo *di;</span>
<span class="diff-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre">- uint8_t direction;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> pat_node *rn, *rn0 = NULL, *rno;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> int c, c0 = -1, ch;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> uint32_t len = key_size * 16;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -1131,8 +1130,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">_grn_pat_del(grn_ctx *ctx, grn_pat *pat, const char *key, uint32_t key_size, int</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> !optarg->func(ctx, (grn_obj *)pat, r, optarg->func_arg)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> return GRN_SUCCESS;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre">- direction = (rn0->lr[1] == r);</span>
<span class="diff-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre">- otherside = direction ? rn0->lr[0] : rn0->lr[1];</span>
<span class="diff-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre">+ otherside = (rn0->lr[1] == r) ? rn0->lr[0] : rn0->lr[1];</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (rn == rn0) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> di->stat = DL_PHASE2;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> di->d = r;</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>