From: Denis Kenzior Date: Thu, 10 Apr 2014 14:33:25 +0000 (-0500) Subject: handsfree: Remove function X-Git-Tag: upstream/1.15~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02138901d302547c5b9e77beb7dec274b04eecb0;p=platform%2Fupstream%2Fofono.git handsfree: Remove function No need for one line functions that are only used once --- diff --git a/src/handsfree.c b/src/handsfree.c index 5997d7bb..86ca46c3 100644 --- a/src/handsfree.c +++ b/src/handsfree.c @@ -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)