gisi: remove g_isi_pending_from_msg()
authorPekka Pessi <Pekka.Pessi@nokia.com>
Tue, 18 Jan 2011 21:27:09 +0000 (23:27 +0200)
committerAki Niemi <aki.niemi@nokia.com>
Tue, 18 Jan 2011 21:34:31 +0000 (23:34 +0200)
gisi/modem.c
gisi/modem.h

index f80d671..8750367 100644 (file)
@@ -156,8 +156,6 @@ static void pending_dispatch(GIsiPending *pend, GIsiMessage *msg)
                g_isi_msg_resource(msg), g_isi_msg_id(msg),
                g_isi_msg_utid(msg));
 
-       msg->private = pend;
-
        pend->notify(msg, pend->data);
 }
 
@@ -177,8 +175,6 @@ static void pending_remove_and_dispatch(GIsiPending *op, GIsiMessage *msg)
                g_isi_msg_resource(msg), g_isi_msg_id(msg),
                g_isi_msg_utid(msg));
 
-       msg->private = op;
-
        op->notify(msg, op->data);
 
 destroy:
@@ -770,11 +766,6 @@ uint8_t g_isi_request_utid(GIsiPending *resp)
        return resp != NULL ? resp->utid : 0;
 }
 
-GIsiPending *g_isi_pending_from_msg(const GIsiMessage *msg)
-{
-       return msg != NULL ? msg->private : NULL;
-}
-
 void g_isi_pending_remove(GIsiPending *op)
 {
        if (op == NULL)
index 0de720d..f0a1617 100644 (file)
@@ -107,8 +107,6 @@ int g_isi_response_vsend(GIsiModem *modem, const GIsiMessage *req,
                                const struct iovec *__restrict iov,
                                size_t iovlen);
 
-GIsiPending *g_isi_pending_from_msg(const GIsiMessage *msg);
-
 void g_isi_pending_remove(GIsiPending *op);
 void g_isi_pending_set_owner(GIsiPending *op, gpointer owner);
 void g_isi_remove_pending_by_owner(GIsiModem *modem, uint8_t resource,