From d053d91c9389628bb4ad04a50ed83817f74879fc Mon Sep 17 00:00:00 2001 From: Travis Reitter Date: Mon, 12 Jul 2010 11:57:35 -0700 Subject: [PATCH] Also remove Capabilities from Individual. --- folks/individual.vala | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/folks/individual.vala b/folks/individual.vala index 3e0f0bc..5c04fa6 100644 --- a/folks/individual.vala +++ b/folks/individual.vala @@ -29,7 +29,6 @@ using Folks; public class Folks.Individual : Object, Alias, Avatar, - Capabilities, Favourite, Groups, Presence @@ -48,11 +47,6 @@ public class Folks.Individual : Object, /** * {@inheritDoc} */ - public CapabilitiesFlags capabilities { get; private set; } - - /** - * {@inheritDoc} - */ public Folks.PresenceType presence_type { get; private set; } /** @@ -363,19 +357,6 @@ public class Folks.Individual : Object, private void update_fields () { - /* Gather the first occurrence of each field. We assume that there is - * at least one persona in the list, since the Individual should've been - * destroyed before now otherwise. */ - var caps = CapabilitiesFlags.NONE; - this._personas.foreach ((p) => - { - if (p is Capabilities) - caps |= ((Capabilities) p).capabilities; - }); - - if (this.capabilities != caps) - this.capabilities = caps; - this.update_groups (); this.update_presence (); this.update_is_favourite (); @@ -539,19 +520,6 @@ public class Folks.Individual : Object, this.avatar = avatar; } - /** - * Get a bitmask of the capabilities of this Individual. - * - * The capabilities is the union of the sets of capabilities of all the - * {@link Persona}s in the Individual. - * - * @return bitmask of the Individual's capabilities - */ - public CapabilitiesFlags get_capabilities () - { - return this.capabilities; - } - /* * GLib/C convenience functions (for built-in casting, etc.) */ -- 2.7.4