Skip to content

Commit

Permalink
[keepalive] Remove dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Jun 25, 2020
1 parent 415e24d commit 7fc840a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
6 changes: 0 additions & 6 deletions lib-glib/keepalive-cpukeepalive.c
Expand Up @@ -116,9 +116,6 @@ struct cpukeepalive_t
/** Async D-Bus query for initial cka_mce_service value */
DBusPendingCall *cka_renew_period_pc;

/** Idle callback id for starting/stopping keepalive session */
guint cka_rethink_id;

// NOTE: cpukeepalive_ctor & cpukeepalive_dtor
};

Expand Down Expand Up @@ -212,9 +209,6 @@ cpukeepalive_ctor(cpukeepalive_t *self)
self->cka_renew_period_ms = 0;
self->cka_renew_period_pc = 0;

/* No pending session rethink scheduled */
self->cka_rethink_id = 0;

/* Connect to systembus */
cpukeepalive_dbus_connect(self);
}
Expand Down
8 changes: 2 additions & 6 deletions plugin/plugin.cpp
@@ -1,6 +1,7 @@
/****************************************************************************************
**
** Copyright (C) 2014 - 2018 Jolla Ltd.
** Copyright (c) 2014 - 2020 Jolla Ltd.
* Copyright (c) 2020 Open Mobile Platform LLC.
**
** Author: Martin Jones <martin.jones@jollamobile.com>
** Author: Simo Piiroinen <simo.piiroinen@jollamobile.com>
Expand Down Expand Up @@ -50,11 +51,6 @@ static QObject *display_blanking_api_factory(QQmlEngine *, QJSEngine *)
return new DisplayBlanking;
}

static QObject *keepalive_api_factory(QQmlEngine *, QJSEngine *)
{
return new DeclarativeKeepAlive;
}

class KeepalivePlugin : public QQmlExtensionPlugin
{
Q_OBJECT
Expand Down

0 comments on commit 7fc840a

Please sign in to comment.