From 556186eb35a92de763e31b8e5012c3c74457aa5e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 9 Oct 2009 14:32:59 -0500 Subject: [PATCH] Remove more unused code --- gatchat/gatchat.h | 1 - gatchat/gatmux.c | 5 ----- gatchat/gsm0710.c | 1 - gatchat/gsm0710.h | 3 --- 4 files changed, 10 deletions(-) diff --git a/gatchat/gatchat.h b/gatchat/gatchat.h index 6a4c2227..76116f32 100644 --- a/gatchat/gatchat.h +++ b/gatchat/gatchat.h @@ -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); diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c index c7834837..ae10a128 100644 --- a/gatchat/gatmux.c +++ b/gatchat/gatmux.c @@ -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; diff --git a/gatchat/gsm0710.c b/gatchat/gsm0710.c index 39c16da7..0feeb550 100644 --- a/gatchat/gsm0710.c +++ b/gatchat/gsm0710.c @@ -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; } diff --git a/gatchat/gsm0710.h b/gatchat/gsm0710.h index f37624e9..a0605d19 100644 --- a/gatchat/gsm0710.h +++ b/gatchat/gsm0710.h @@ -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); };