[folks] Revert "For Vala 0.12, don't use deprecated string.to_int()."
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Revert "For Vala 0.12, don't use deprecated string.to_int()."
- Date: Fri, 4 Feb 2011 00:16:32 +0000 (UTC)
commit c7071fb3c49984f858820129e46b457cf3430114
Author: Travis Reitter <travis reitter collabora co uk>
Date: Thu Feb 3 16:10:11 2011 -0800
Revert "For Vala 0.12, don't use deprecated string.to_int()."
This reverts commit be8f7259ddd1dcd558b28ffc0761358e8d49bd48.
This depends upon unreleased changes to Vala, so we'll wait till then.
backends/key-file/kf-persona-store.vala | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/backends/key-file/kf-persona-store.vala b/backends/key-file/kf-persona-store.vala
index 8b169f9..4a3d1a4 100644
--- a/backends/key-file/kf-persona-store.vala
+++ b/backends/key-file/kf-persona-store.vala
@@ -228,11 +228,7 @@ public class Folks.Backends.Kf.PersonaStore : Folks.PersonaStore
var groups = this._key_file.get_groups ();
foreach (var persona_id in groups)
{
-#if VALA_0_12
- if (int.parse (persona_id) == this._first_unused_id)
-#else
if (persona_id.to_int () == this._first_unused_id)
-#endif
this._first_unused_id++;
Persona persona = new Kf.Persona (this._key_file, persona_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]