You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/12/22 09:07:35 UTC

[incubator-nuttx-apps] branch master updated: testing/irtest: Remove an unused function

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 961ffac  testing/irtest: Remove an unused function
961ffac is described below

commit 961fface44a775a689d92a93884b09602f0c3a14
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Dec 22 15:32:30 2020 +0900

    testing/irtest: Remove an unused function
---
 testing/irtest/cmd.cpp | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/testing/irtest/cmd.cpp b/testing/irtest/cmd.cpp
index c7472e4..7a5686a 100644
--- a/testing/irtest/cmd.cpp
+++ b/testing/irtest/cmd.cpp
@@ -69,20 +69,6 @@ static void print_cmd(const cmd *cmd)
   printf(")\n");
 }
 
-static int print_cmd(const char *name)
-{
-  for (int i = 0; g_cmd_table[i]; i++)
-    {
-      if (strcmp(name, g_cmd_table[i]->name) == 0)
-        {
-          print_cmd(g_cmd_table[i]);
-          return 0;
-        }
-    }
-
-  return -ENOENT;
-}
-
 static void print_all_cmds()
 {
   for (int i = 0; g_cmd_table[i]; i++)