From 02138901d302547c5b9e77beb7dec274b04eecb0 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 10 Apr 2014 09:33:25 -0500 Subject: handsfree: Remove function No need for one line functions that are only used once --- src/handsfree.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') 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) -- cgit v1.2.3