all: get rid of a handful of unused-but-set variables

This commit is contained in:
Lubomir Rintel
2017-12-18 08:36:51 +01:00
parent 0ae44fe7e2
commit 6672c5e92e
35 changed files with 40 additions and 145 deletions

View File

@@ -38,7 +38,6 @@ NM_GOBJECT_PROPERTIES_DEFINE_BASE (
typedef struct {
NMPlatform *platform;
NMPNetns *platform_netns;
bool log_with_ptr;
} NMNetnsPrivate;
struct _NMNetns {
@@ -113,13 +112,10 @@ constructed (GObject *object)
{
NMNetns *self = NM_NETNS (object);
NMNetnsPrivate *priv = NM_NETNS_GET_PRIVATE (self);
gboolean log_with_ptr;
if (!priv->platform)
g_return_if_reached ();
log_with_ptr = nm_platform_get_log_with_ptr (priv->platform);
priv->platform_netns = nm_platform_netns_get (priv->platform);
G_OBJECT_CLASS (nm_netns_parent_class)->constructed (object);