[folks] core: Remove unused PotentialMatch.result_to_string() method



commit 470428fc92f0b264b2cd7b0158f0e5320d1e7671
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Jul 29 20:44:50 2011 +0100

    core: Remove unused PotentialMatch.result_to_string() method

 NEWS                       |    1 +
 folks/potential-match.vala |   29 -----------------------------
 2 files changed, 1 insertions(+), 29 deletions(-)
---
diff --git a/NEWS b/NEWS
index 1050242..8472cac 100644
--- a/NEWS
+++ b/NEWS
@@ -40,6 +40,7 @@ API changes:
 * AvatarDetails.avatar is now of type LoadableIcon?
 * Add AvatarCache class
 * Add ObjectCache class
+* Remove leaked internal PotentialMatch.result_to_string() method
 
 Overview of changes from libfolks 0.5.1 to libfolks 0.5.2
 =========================================================
diff --git a/folks/potential-match.vala b/folks/potential-match.vala
index 6716d86..8452ce2 100644
--- a/folks/potential-match.vala
+++ b/folks/potential-match.vala
@@ -162,35 +162,6 @@ public class Folks.PotentialMatch : Object
         }
     }
 
-  /**
-   * Keep in sync with Folks.MatchResult.
-   *
-   * @since 0.5.0
-   */
-  public static string result_to_string (MatchResult result)
-    {
-      string match_level = "";
-      switch (result)
-        {
-          case Folks.MatchResult.VERY_LOW:
-            match_level = "very low";
-            break;
-          case Folks.MatchResult.LOW:
-            match_level = "low";
-            break;
-          case Folks.MatchResult.MEDIUM:
-            match_level = "medium";
-            break;
-          case Folks.MatchResult.HIGH:
-            match_level = "high";
-            break;
-          case Folks.MatchResult.VERY_HIGH:
-            match_level = "very high";
-            break;
-        }
-      return match_level;
-    }
-
   /* Approach:
    * - taking in account family, given, prefix, suffix and additional names
    *   we give some points for each non-empty match



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]