accel: Remove unused AccelClass::opt_name attribute
authorWainer dos Santos Moschetta <wainersm@redhat.com>
Fri, 31 May 2019 16:53:34 +0000 (12:53 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 7 Jun 2019 18:28:46 +0000 (15:28 -0300)
The AccelType type was converted to AccelClass QOM
object on b14a0b7469f, 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: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20190531165334.20403-2-wainersm@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/sysemu/accel.h

index 70e9e2f2a1cb28dfebb52142b4cc2e92290b4eab..81293cdb08f9c36a925ee82630fba1cb54e50ef2 100644 (file)
@@ -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);