Removed backwards compatibility code from core.

That function should be static.
This commit is contained in:
irungentoo 2015-02-27 21:18:43 -05:00
parent d015879cd3
commit 8e59a826cb
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
2 changed files with 1 additions and 14 deletions

View File

@ -1002,7 +1002,7 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, uint32_t, u
* return 1 on success
* return 0 on failure
*/
int file_sendrequest(const Messenger *m, int32_t friendnumber, uint8_t filenumber, uint64_t filesize,
static int file_sendrequest(const Messenger *m, int32_t friendnumber, uint8_t filenumber, uint64_t filesize,
const uint8_t *filename, uint16_t filename_length)
{
if (friend_not_valid(m, friendnumber))
@ -1612,11 +1612,6 @@ static int handle_packet(void *object, int i, uint8_t *temp, uint16_t len)
if (packet_id == PACKET_ID_ONLINE && len == 1) {
set_friend_status(m, i, FRIEND_ONLINE);
send_online_packet(m, i);
} else if (packet_id == PACKET_ID_NICKNAME || packet_id == PACKET_ID_STATUSMESSAGE
|| packet_id == PACKET_ID_USERSTATUS) {
/* Some backward compatibility, TODO: remove. */
set_friend_status(m, i, FRIEND_ONLINE);
send_online_packet(m, i);
} else {
return -1;
}

View File

@ -575,14 +575,6 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, uint32_t, u
uint16_t length,
void *), void *userdata);
/* Send a file send request.
* Maximum filename length is 255 bytes.
* return 1 on success
* return 0 on failure
*/
int file_sendrequest(const Messenger *m, int32_t friendnumber, uint8_t filenumber, uint64_t filesize,
const uint8_t *filename, uint16_t filename_length);
/* Send a file send request.
* Maximum filename length is 255 bytes.
* return file number on success