Commit 754f1dbc authored by Wainer dos Santos Moschetta's avatar Wainer dos Santos Moschetta Committed by Eduardo Habkost
Browse files

accel: Remove unused AccelClass::opt_name attribute



The AccelType type was converted to AccelClass QOM
object on b14a0b74, and the original data type had
a field to store the option name which in turn was
used to search an accelerator. The lookup method
(accel_find) changed too, making the option field
unnecessary but it became AccelClass::opt_name despite
that. Therefore, and given that none accelerator
implementation sets AccelClass::opt_name, let's
remove this attribute.

Signed-off-by: default avatarWainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20190531165334.20403-2-wainersm@redhat.com>
Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
parent a5bf9fbc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ typedef struct AccelClass {
    ObjectClass parent_class;
    /*< public >*/

    const char *opt_name;
    const char *name;
    int (*init_machine)(MachineState *ms);
    void (*setup_post)(MachineState *ms, AccelState *accel);