Skip to content

Commit

Permalink
src: Removing last remaining stale 'file-transfer' code
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshavardhana committed Apr 26, 2014
1 parent b7be840 commit 868171b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 31 deletions.
18 changes: 1 addition & 17 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
TODO:

1. Fix the bug introduced by invisible mode during freetalk to freetalk communication.
Gtalk to freetalk Invisible mode works properly due to some additional handling of
gtalk client from Google.

2. File transfer code cleanup, fix it for new jabber protocol for file transfer
(Atleast fix it somehow :P)

3. Add new command like "/refresh" to get new list roster list from Jabber/Google server
and also atleast make it dynamic, as there is occasional hanging of the roster list
under invisible mode and other modes too.

4. Show idle if no activity on the terminal for 5 or more minutes.

5. Fix needed in handling of a notification of a statement "typing... " to be sent to Gtalk
while the user is typing some content to be sent on the terminal of freetalk.
TODO @ https://github.com/GNUFreetalk/freetalk/issues
1 change: 0 additions & 1 deletion extensions/first-time-run.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ normal ()
; (ft-bind-to-ctrl-key #\h "(/who \"\")")
EOF
mkdir -p "${CONFIG_BASE}/extensions";
mkdir -p "${CONFIG_BASE}/downloads";
mkdir -p "${CONFIG_BASE}/history";
}

Expand Down
8 changes: 0 additions & 8 deletions src/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,6 @@ ft_msg_iq_handler (LmMessageHandler *handler, LmConnection *conn,
if( type == LM_MESSAGE_SUB_TYPE_GET ) {
ft_msg_iq_last_cb (msg);
}
/* TODO: file transfer
} else if (ns && !g_ascii_strcasecmp (ns, "http://jabber.org/protocol/disco#info")) {
if( type == LM_MESSAGE_SUB_TYPE_GET ) {
ft_msg_sub_type_get_cb (msg);
} else if( type == LM_MESSAGE_SUB_TYPE_RESULT ) {
ft_msg_sub_type_result_cb (msg);
}
*/
} else
PRINTF (_("[iq received: %s (unhandled yet)]"), ns);

Expand Down
3 changes: 0 additions & 3 deletions src/freetalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ state_init (void)
state.need_ssl = 0; /* turn off ssl by default */
state.need_tls = 0; /* turn off tls by default */
state.need_proxy = 0; /* turn off proxy by default */
state.f_state = NULL;
state.download_dirname = (char *)calloc (1, strlen (getenv ("HOME")) + 1 + strlen (".freetalk/downloads") + 1);
sprintf (state.download_dirname, "%s/.freetalk/downloads", getenv ("HOME"));
state.last = time(NULL);
}

Expand Down
2 changes: 0 additions & 2 deletions src/freetalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ typedef struct {
GSList *roster;
char *script;
char *config_dir;
GSList *f_state; /* file transfer states - linked list */
char *download_dirname; /* default directory where all files xfered go */
time_t last;
char need_proxy;
char *proxyserver;
Expand Down

0 comments on commit 868171b

Please sign in to comment.