handsfree: Remove function
authorDenis Kenzior <denkenz@gmail.com>
Thu, 10 Apr 2014 14:33:25 +0000 (09:33 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 10 Apr 2014 14:43:41 +0000 (09:43 -0500)
No need for one line functions that are only used once

src/handsfree.c

index 5997d7b..86ca46c 100644 (file)
@@ -181,11 +181,6 @@ void ofono_handsfree_battchg_notify(struct ofono_handsfree *hf,
                                        &level);
 }
 
-static gboolean ofono_handsfree_is_busy(struct ofono_handsfree *hf)
-{
-       return hf->pending ? TRUE : FALSE;
-}
-
 static void append_subscriber_numbers(GSList *subscriber_numbers,
                                                DBusMessageIter *iter)
 {
@@ -321,7 +316,7 @@ static DBusMessage *handsfree_get_properties(DBusConnection *conn,
 {
        struct ofono_handsfree *hf = data;
 
-       if (ofono_handsfree_is_busy(hf))
+       if (hf->pending != NULL)
                return __ofono_error_busy(msg);
 
        if (hf->flags & HANDSFREE_FLAG_CACHED)