linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH obexd] client: Remove unused public function
Date: Tue, 28 Feb 2012 14:57:10 +0200	[thread overview]
Message-ID: <1330433830-20017-1-git-send-email-luiz.dentz@gmail.com> (raw)

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

obex_io_error_quark is only used in session.c so can be static
---
 client/session.c |    2 +-
 client/session.h |    3 ---
 2 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/client/session.c b/client/session.c
index 417295e..14bb3b9 100644
--- a/client/session.c
+++ b/client/session.c
@@ -111,7 +111,7 @@ static void transfer_progress(struct obc_transfer *transfer,
 					gint64 transferred, GError *err,
 					void *user_data);
 
-GQuark obex_io_error_quark(void)
+static GQuark obex_io_error_quark(void)
 {
 	return g_quark_from_static_string("obex-io-error-quark");
 }
diff --git a/client/session.h b/client/session.h
index f082510..a19b31f 100644
--- a/client/session.h
+++ b/client/session.h
@@ -27,9 +27,6 @@
 
 struct obc_session;
 
-#define OBEX_IO_ERROR obex_io_error_quark()
-GQuark obex_io_error_quark(void);
-
 typedef void (*session_callback_t) (struct obc_session *session,
 					GError *err, void *user_data);
 
-- 
1.7.7.6


             reply	other threads:[~2012-02-28 12:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-28 12:57 Luiz Augusto von Dentz [this message]
2012-03-01  3:29 ` [PATCH obexd] client: Remove unused public function Johan Hedberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330433830-20017-1-git-send-email-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).