From 3cc0a832a90926822d5ad858885cfc9877febe9b Mon Sep 17 00:00:00 2001 From: mjentsch Date: Sat, 21 Nov 2015 22:21:00 +0100 Subject: [PATCH] Remove dead code and unused functions --- tgp-chat.h | 1 - tgp-ft.h | 1 - tgp-net.h | 8 -------- 3 files changed, 10 deletions(-) diff --git a/tgp-chat.h b/tgp-chat.h index 596a6ef..0071325 100644 --- a/tgp-chat.h +++ b/tgp-chat.h @@ -31,7 +31,6 @@ PurpleChat *p2tgl_chat_new (struct tgl_state *TLS, struct tgl_chat *chat); void tgp_chat_on_loaded_chat_full (struct tgl_state *TLS, struct tgl_chat *C); PurpleConversation *tgp_chat_show (struct tgl_state *TLS, struct tgl_chat *C); void tgp_chat_users_update (struct tgl_state *TLS, struct tgl_chat *C); -int chat_add_message (struct tgl_state *TLS, struct tgl_message *M, char *text); char *tgprpl_get_chat_name (GHashTable *data); void tgprpl_chat_join (PurpleConnection *gc, GHashTable *data); diff --git a/tgp-ft.h b/tgp-ft.h index 2db5aa7..90254ef 100644 --- a/tgp-ft.h +++ b/tgp-ft.h @@ -29,7 +29,6 @@ PurpleXfer *tgprpl_new_xfer (PurpleConnection * gc, const char *who); void tgprpl_send_file (PurpleConnection * gc, const char *who, const char *file); void tgprpl_recv_file (PurpleConnection * gc, const char *who, struct tgl_message *M); -void tgprpl_recv_encr_file (PurpleConnection * gc, const char *who, struct tgl_message *M); void tgprpl_xfer_free_all (connection_data *conn); #endif diff --git a/tgp-net.h b/tgp-net.h index 258a045..41e1d14 100644 --- a/tgp-net.h +++ b/tgp-net.h @@ -66,22 +66,14 @@ struct connection { void *prpl_data; }; -//extern struct connection *Connections[]; int tgln_write_out (struct connection *c, const void *data, int len); void tgln_flush_out (struct connection *c); int tgln_read_in (struct connection *c, void *data, int len); int tgln_read_in_lookup (struct connection *c, void *data, int len); -//void tgln_insert_msg_id (struct tgl_session *S, long long id); extern struct tgl_net_methods tgp_conn_methods; - -//void create_all_outbound_connections (void); - -//struct connection *create_connection (const char *host, int port, struct tgl_session *session, struct connection_methods *methods); -//struct tgl_dc *tgln_alloc_dc (int id, char *ip, int port); -//void tgln_dc_create_session (struct tgl_dc *DC, struct mtproto_methods *methods); struct connection *tgln_create_connection (struct tgl_state *TLS, const char *host, int port, struct tgl_session *session, struct tgl_dc *dc, struct mtproto_methods *methods); #define GET_DC(c) (c->session->dc)