[gnome-contacts] Utils: remove unused string_is_empty()



commit 1326e49d8fd9732a4f162310e7d3cc8ed7f638ac
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun Jan 21 15:28:47 2018 +0100

    Utils: remove unused string_is_empty()

 src/contacts-utils.vala |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/src/contacts-utils.vala b/src/contacts-utils.vala
index c1db1ab..f3ec1a9 100644
--- a/src/contacts-utils.vala
+++ b/src/contacts-utils.vala
@@ -172,20 +172,6 @@ namespace Contacts.Utils {
     return null;
   }
 
-  /* Returns false if the given string contains at least one non-"space"
-   * character.
-   */
-  public bool string_is_empty (string str) {
-    unichar c;
-
-    for (int i = 0; str.get_next_char (ref i, out c);) {
-      if (!c.isspace ())
-        return false;
-    }
-
-    return true;
-  }
-
   public void grab_entry_focus_no_select (Entry entry) {
     int start, end;
     if (!entry.get_selection_bounds (out start, out end)) {


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