mirror of git://git.sysmocom.de/ofono
Remove more unused code
This commit is contained in:
parent
876943e2b4
commit
556186eb35
|
@ -40,7 +40,6 @@ typedef void (*GAtDisconnectFunc)(gpointer user_data);
|
|||
typedef void (*GAtDebugFunc)(const char *str, gpointer user_data);
|
||||
|
||||
GAtChat *g_at_chat_new(GIOChannel *channel, GAtSyntax *syntax);
|
||||
GAtChat *g_at_chat_new_from_tty(const char *device, GAtSyntax *syntax);
|
||||
|
||||
GAtChat *g_at_chat_ref(GAtChat *chat);
|
||||
void g_at_chat_unref(GAtChat *chat);
|
||||
|
|
|
@ -107,10 +107,6 @@ static int do_write(struct gsm0710_context *ctx, const void *data, int len)
|
|||
return bytes_written;
|
||||
}
|
||||
|
||||
static void do_terminate(struct gsm0710_context *ctx)
|
||||
{
|
||||
}
|
||||
|
||||
static void deliver_data(struct gsm0710_context *ctx, int channel,
|
||||
const void *data, int len)
|
||||
{
|
||||
|
@ -170,7 +166,6 @@ GAtMux *g_at_mux_new(GIOChannel *channel)
|
|||
|
||||
mux->ctx.read = do_read;
|
||||
mux->ctx.write = do_write;
|
||||
mux->ctx.terminate = do_terminate;
|
||||
mux->ctx.deliver_data = deliver_data;
|
||||
mux->ctx.deliver_status = deliver_status;
|
||||
mux->ctx.debug_message = debug_message;
|
||||
|
|
|
@ -52,7 +52,6 @@ void gsm0710_initialize(struct gsm0710_context *ctx)
|
|||
ctx->deliver_data = NULL;
|
||||
ctx->deliver_status = NULL;
|
||||
ctx->debug_message = NULL;
|
||||
ctx->terminate = NULL;
|
||||
ctx->packet_filter = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -62,9 +62,6 @@ struct gsm0710_context
|
|||
void (*deliver_status)(struct gsm0710_context *ctx,
|
||||
int channel, int status);
|
||||
void (*debug_message)(struct gsm0710_context *ctx, const char *msg);
|
||||
void (*open_channel)(struct gsm0710_context *ctx, int channel);
|
||||
void (*close_channel)(struct gsm0710_context *ctx, int channel);
|
||||
void (*terminate)(struct gsm0710_context *ctx);
|
||||
int (*packet_filter)(struct gsm0710_context *ctx, int channel,
|
||||
int type, const unsigned char *data, int len);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue