Commit 4f8852b2 authored by Thomas Haller's avatar Thomas Haller
Browse files

libnm/device-p2p-wifi: drop unused code

If this is going to be implemented, revert the patch.
parent c6c41eb1
......@@ -88,10 +88,6 @@ G_DEFINE_TYPE (NMDeviceP2PWifi, nm_device_p2p_wifi, NM_TYPE_DEVICE)
/*****************************************************************************/
static void state_changed_cb (NMDevice *device, GParamSpec *pspec, gpointer user_data);
/*****************************************************************************/
/**
* nm_device_p2p_wifi_get_hw_address:
* @device: a #NMDeviceP2PWifi
......@@ -345,34 +341,9 @@ nm_device_p2p_wifi_init (NMDeviceP2PWifi *device)
{
NMDeviceP2PWifiPrivate *priv = NM_DEVICE_P2P_WIFI_GET_PRIVATE (device);
g_signal_connect (device,
"notify::" NM_DEVICE_STATE,
G_CALLBACK (state_changed_cb),
NULL);
priv->peers = g_ptr_array_new ();
}
static void
state_changed_cb (NMDevice *device, GParamSpec *pspec, gpointer user_data)
{
#if 0
NMDeviceP2PWifi *self = NM_DEVICE_P2P_WIFI (device);
switch (nm_device_get_state (device)) {
case NM_DEVICE_STATE_UNKNOWN:
case NM_DEVICE_STATE_UNMANAGED:
case NM_DEVICE_STATE_UNAVAILABLE:
case NM_DEVICE_STATE_DISCONNECTED:
case NM_DEVICE_STATE_FAILED:
/* TODO: Do something? */
break;
default:
break;
}
#endif
}
static void
init_dbus (NMObject *object)
{
......
......@@ -51,10 +51,6 @@ const char * nm_device_p2p_wifi_get_hw_address (NMDeviceP2PWifi *d
NM_AVAILABLE_IN_1_16
gboolean nm_device_p2p_wifi_get_group_owner (NMDeviceP2PWifi *device);
#if 0
gboolean nm_device_p2p_wifi_get_wfdies (NMDeviceP2PWifi *device);
#endif
NM_AVAILABLE_IN_1_16
NMP2PPeer * nm_device_p2p_wifi_get_peer_by_path (NMDeviceP2PWifi *device,
const char *path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment