diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-08 13:08:45 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-08 17:40:18 +0100 |
commit | cb8783c25ac8228ae5248bfa8bc8596fa6968879 (patch) | |
tree | cebc50b3a008120d10a1fbeef14270e636999386 /src/mcd-master.c | |
parent | 0deffb0262f2c33b582df25e06c931f0693ded3e (diff) | |
download | telepathy-mission-control-cb8783c25ac8228ae5248bfa8bc8596fa6968879.tar.gz |
Remove unused support for a magical auto-away flag set by embedders
Less code, fewer bugs. Also, people should have stopped embedding MC by
now, and an earlier patch in this series made it impossible.
Diffstat (limited to 'src/mcd-master.c')
-rw-r--r-- | src/mcd-master.c | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/src/mcd-master.c b/src/mcd-master.c index 5c176d8e..c9c6e2b8 100644 --- a/src/mcd-master.c +++ b/src/mcd-master.c @@ -697,82 +697,3 @@ _mcd_master_account_replace_transport (McdMaster *master, g_hash_table_unref (conditions); return connected; } - -gboolean -mcd_master_has_low_memory (McdMaster *master) -{ - McdMasterPrivate *priv = MCD_MASTER_PRIV (master); - - return priv->low_memory; -} - -/* For the moment, this is implemented in terms of McdSystemFlags. */ -void -mcd_master_set_low_memory (McdMaster *master, - gboolean low_memory) -{ - McdMasterPrivate *priv = MCD_MASTER_PRIV (master); - - priv->low_memory = low_memory; -} - -/* For the moment, this is implemented in terms of McdSystemFlags. When - * McdSystemFlags are abolished, move the processing from set_flags to - * this function. */ -void -mcd_master_set_idle (McdMaster *master, - gboolean idle) -{ - McdMasterPrivate *priv = MCD_MASTER_PRIV (master); - gboolean idle_flag_old; - - idle_flag_old = priv->idle; - priv->idle = idle != 0; - - if (idle_flag_old != priv->idle) - { - GHashTableIter iter; - gpointer v; - - g_hash_table_iter_init (&iter, - _mcd_account_manager_get_accounts (priv->account_manager)); - - while (g_hash_table_iter_next (&iter, NULL, &v)) - { - McdAccount *account = MCD_ACCOUNT (v); - - if (priv->idle) - { - TpConnectionPresenceType presence; - - /* If the current presence is not Available then we don't go - * auto-away - this avoids (a) manipulating offline accounts - * and (b) messing up people's busy or invisible status */ - mcd_account_get_current_presence (account, &presence, NULL, - NULL); - - if (presence != TP_CONNECTION_PRESENCE_TYPE_AVAILABLE) - { - continue; - } - - /* Set the Connection to be "away" if the CM supports it - * (if not, it'll just fail - no harm done) */ - _mcd_account_request_temporary_presence (account, - TP_CONNECTION_PRESENCE_TYPE_AWAY, "away"); - } - else - { - TpConnectionPresenceType presence; - const gchar *status; - const gchar *message; - - /* Go back to the requested presence */ - mcd_account_get_requested_presence (account, &presence, - &status, &message); - mcd_account_request_presence (account, presence, status, - message); - } - } - } -} |