network: Remove virtual method

Nothing ever overrode it; just convert to a normal method.
This commit is contained in:
Robert Ancell 2019-10-18 15:23:40 +13:00 committed by Georges Basile Stavracas Neto
parent 4dbea87109
commit 87b98346df
2 changed files with 2 additions and 11 deletions

View file

@ -116,8 +116,8 @@ compare_mac_device_with_mac_connection (NMDevice *device,
return g_strcmp0 (mac_dev, mac_conn) == 0;
}
static NMConnection *
net_device_real_get_find_connection (NetDevice *self)
NMConnection *
net_device_get_find_connection (NetDevice *self)
{
NetDevicePrivate *priv = net_device_get_instance_private (self);
GSList *list, *iterator;
@ -155,12 +155,6 @@ out:
return connection;
}
NMConnection *
net_device_get_find_connection (NetDevice *self)
{
return NET_DEVICE_GET_CLASS (self)->get_find_connection (self);
}
static void
state_changed_cb (NetDevice *self)
{
@ -277,7 +271,6 @@ net_device_class_init (NetDeviceClass *klass)
object_class->get_property = net_device_get_property;
object_class->set_property = net_device_set_property;
parent_class->edit = net_device_edit;
klass->get_find_connection = net_device_real_get_find_connection;
pspec = g_param_spec_object ("nm-device", NULL, NULL,
NM_TYPE_DEVICE,

View file

@ -35,8 +35,6 @@ G_DECLARE_DERIVABLE_TYPE (NetDevice, net_device, NET, DEVICE, NetObject)
struct _NetDeviceClass
{
NetObjectClass parent_class;
NMConnection * (*get_find_connection) (NetDevice *device);
};
NetDevice *net_device_new (void);