cbfstool: Remove unused cmd_t

Change-Id: Ib1c05828258b9dc7107920ae6cb25bc92ffa86d1
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/1795
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Stefan Reinauer 2012-10-23 15:56:16 -07:00 committed by Stefan Reinauer
parent 20848ee288
commit cb6fd30155
1 changed files with 9 additions and 22 deletions

View File

@ -25,20 +25,7 @@
#include "common.h"
#include "cbfs.h"
typedef enum {
CMD_ADD,
CMD_ADD_PAYLOAD,
CMD_ADD_STAGE,
CMD_ADD_FLAT,
CMD_REMOVE,
CMD_CREATE,
CMD_LOCATE,
CMD_PRINT,
CMD_EXTRACT,
} cmd_t;
struct command {
cmd_t id;
const char *name;
int (*function) (int argc, char **argv);
};
@ -392,15 +379,15 @@ static int cbfs_extract(int argc, char **argv)
}
static const struct command commands[] = {
{CMD_ADD, "add", cbfs_add},
{CMD_ADD_PAYLOAD, "add-payload", cbfs_add_payload},
{CMD_ADD_STAGE, "add-stage", cbfs_add_stage},
{CMD_ADD_FLAT, "add-flat-binary", cbfs_add_flat_binary},
{CMD_REMOVE, "remove", cbfs_remove},
{CMD_CREATE, "create", cbfs_create},
{CMD_LOCATE, "locate", cbfs_locate},
{CMD_PRINT, "print", cbfs_print},
{CMD_EXTRACT, "extract", cbfs_extract},
{"add", cbfs_add},
{"add-payload", cbfs_add_payload},
{"add-stage", cbfs_add_stage},
{"add-flat-binary", cbfs_add_flat_binary},
{"remove", cbfs_remove},
{"create", cbfs_create},
{"locate", cbfs_locate},
{"print", cbfs_print},
{"extract", cbfs_extract},
};
static void usage(void)