summaryrefslogtreecommitdiff
path: root/gobex/gobex-packet.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2011-09-05 12:29:54 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:22:03 +0100
commit1c2da64348f85314e73494a0372cf26bb2cf821c (patch)
treeabb9602fd855a7ca5605984136fa1c201eb578e9 /gobex/gobex-packet.c
parent68bd9dd92b949aa22202edd69bc3a69c155cc9ce (diff)
downloadbluez-1c2da64348f85314e73494a0372cf26bb2cf821c.tar.gz
gobex: Remove g_obex_packet_find_header
This was exactly the same as g_obex_packet_get_header.
Diffstat (limited to 'gobex/gobex-packet.c')
-rw-r--r--gobex/gobex-packet.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gobex/gobex-packet.c b/gobex/gobex-packet.c
index 5765c8b4f..e2914a4e3 100644
--- a/gobex/gobex-packet.c
+++ b/gobex/gobex-packet.c
@@ -79,20 +79,6 @@ guint8 g_obex_packet_get_operation(GObexPacket *pkt, gboolean *final)
return pkt->opcode;
}
-GObexHeader *g_obex_packet_find_header(GObexPacket *pkt, guint8 id)
-{
- GSList *l;
-
- for (l = pkt->headers; l != NULL; l = g_slist_next(l)) {
- GObexHeader *hdr = l->data;
-
- if (g_obex_header_get_id(hdr) == id)
- return hdr;
- }
-
- return NULL;
-}
-
gboolean g_obex_packet_prepend_header(GObexPacket *pkt, GObexHeader *header)
{
pkt->headers = g_slist_prepend(pkt->headers, header);