linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH obexd] client: Remove unused public function
@ 2012-02-28 12:57 Luiz Augusto von Dentz
  2012-03-01  3:29 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2012-02-28 12:57 UTC (permalink / raw)
  To: linux-bluetooth

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH obexd] client: Remove unused public function
  2012-02-28 12:57 [PATCH obexd] client: Remove unused public function Luiz Augusto von Dentz
@ 2012-03-01  3:29 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2012-03-01  3:29 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hi Luiz,

On Tue, Feb 28, 2012, Luiz Augusto von Dentz wrote:
> 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(-)

Applied. Thanks.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-01  3:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-28 12:57 [PATCH obexd] client: Remove unused public function Luiz Augusto von Dentz
2012-03-01  3:29 ` Johan Hedberg

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).