Index: src/libgsmd/libgsmd.c =================================================================== --- src/libgsmd/libgsmd.c (revision 4314) +++ src/libgsmd/libgsmd.c (working copy) @@ -37,29 +37,6 @@ #include "lgsm_internals.h" -static int lgsm_get_packet(struct lgsm_handle *lh) -{ - static char buf[GSMD_MSGSIZE_MAX]; - struct gsmd_msg_hdr *hdr = (struct gsmd_msg_hdr *) buf; - int rc = read(lh->fd, buf, sizeof(buf)); - if (rc <= 0) - return rc; - - if (hdr->version != GSMD_PROTO_VERSION) - return -EINVAL; - - switch (hdr->msg_type) { - case GSMD_MSG_PASSTHROUGH: - - break; - default: - return -EINVAL; - } - - return 0; -} - - static int lgsm_open_backend(struct lgsm_handle *lh, const char *device) { int rc;