<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7026">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
  George Joseph: Looks good to me, but someone else must approve
  Matthew Fredrickson: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">CLI: Remove unused internal command.<br><br>The internal CLI command "_command complete" was last used by Asterisk<br>0.2.0.  Since then we've been using "_command nummatches" and "_command<br>matchesarray".<br><br>Change-Id: I682fe1e21a24a3bb5bd04146e639f1c5866bcfce<br>---<br>M main/cli.c<br>1 file changed, 0 insertions(+), 27 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/cli.c b/main/cli.c<br>index 0896181..5c16e8b 100644<br>--- a/main/cli.c<br>+++ b/main/cli.c<br>@@ -1362,31 +1362,6 @@<br>         return CLI_SUCCESS;<br> }<br> <br>-static char *handle_commandcomplete(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)<br>-{<br>-       char *buf;<br>-   switch (cmd) {<br>-       case CLI_INIT:<br>-               e->command = "_command complete";<br>-               e->usage =<br>-                        "Usage: _command complete \"<line>\" text state\n"<br>-                 "       This function is used internally to help with command completion and should.\n"<br>-                    "       never be called by the user directly.\n";<br>-          return NULL;<br>- case CLI_GENERATE:<br>-           return NULL;<br>- }<br>-    if (a->argc != 5)<br>-         return CLI_SHOWUSAGE;<br>-        buf = __ast_cli_generator(a->argv[2], a->argv[3], atoi(a->argv[4]), 0);<br>-     if (buf) {<br>-           ast_cli(a->fd, "%s", buf);<br>-              ast_free(buf);<br>-       } else<br>-               ast_cli(a->fd, "NULL\n");<br>-       return CLI_SUCCESS;<br>-}<br>-<br> struct channel_set_debug_args {<br>  int fd;<br>       int is_off;<br>@@ -1817,8 +1792,6 @@<br> static char *handle_help(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a);<br> <br> static struct ast_cli_entry cli_cli[] = {<br>-      /* Deprecated, but preferred command is now consolidated (and already has a deprecated command for it). */<br>-   AST_CLI_DEFINE(handle_commandcomplete, "Command complete"),<br>         AST_CLI_DEFINE(handle_commandnummatches, "Returns number of command matches"),<br>      AST_CLI_DEFINE(handle_commandmatchesarray, "Returns command matches array"),<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7026">change 7026</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7026"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I682fe1e21a24a3bb5bd04146e639f1c5866bcfce </div>
<div style="display:none"> Gerrit-Change-Number: 7026 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Matthew Fredrickson <creslin@digium.com> </div>