plug-ins/imagemap: Kill #define COMMAND_PROTO
Kill #define COMMAND_PROTO and move its definition to the only client, and get rid of warnings about defined functions not being used.
This commit is contained in:
@ -29,13 +29,14 @@
|
|||||||
|
|
||||||
#include "libgimp/stdplugins-intl.h"
|
#include "libgimp/stdplugins-intl.h"
|
||||||
|
|
||||||
COMMAND_PROTO(move_sash_command);
|
static void move_sash_command_destruct(Command_t *command);
|
||||||
|
static CmdExecuteValue_t move_sash_command_execute(Command_t *command);
|
||||||
|
|
||||||
static CommandClass_t move_sash_command_class = {
|
static CommandClass_t move_sash_command_class = {
|
||||||
move_sash_command_destruct,
|
move_sash_command_destruct,
|
||||||
move_sash_command_execute,
|
move_sash_command_execute,
|
||||||
NULL, /* move_sash_command_undo */
|
NULL /*undo*/,
|
||||||
NULL /* move_sash_command_redo */
|
NULL /*redo*/
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -33,12 +33,6 @@ typedef struct CommandList_t CommandList_t;
|
|||||||
|
|
||||||
typedef enum {CMD_APPEND, CMD_DESTRUCT, CMD_IGNORE} CmdExecuteValue_t;
|
typedef enum {CMD_APPEND, CMD_DESTRUCT, CMD_IGNORE} CmdExecuteValue_t;
|
||||||
|
|
||||||
#define COMMAND_PROTO(class) \
|
|
||||||
static void class##_destruct(Command_t *command); \
|
|
||||||
static CmdExecuteValue_t class##_execute(Command_t *command); \
|
|
||||||
static void class##_undo(Command_t *command); \
|
|
||||||
static void class##_redo(Command_t *command)
|
|
||||||
|
|
||||||
struct CommandClass_t {
|
struct CommandClass_t {
|
||||||
void (*destruct)(Command_t*);
|
void (*destruct)(Command_t*);
|
||||||
CmdExecuteValue_t (*execute)(Command_t*);
|
CmdExecuteValue_t (*execute)(Command_t*);
|
||||||
|
Reference in New Issue
Block a user