Network: Removed unused function

This commit is contained in:
Claudio Takahasi 2008-09-01 18:56:36 -03:00
parent 6a9485b234
commit 3f498e694e
2 changed files with 0 additions and 21 deletions

View File

@ -43,7 +43,6 @@
#include "logging.h"
#include "common.h"
#include "textfile.h"
static int ctl;
static GSList *pids;
@ -371,21 +370,3 @@ done:
return 0;
}
int read_remote_name(bdaddr_t *src, bdaddr_t *dst, char *buf, size_t size)
{
char filename[PATH_MAX + 1], addr[18], *str;
ba2str(src, addr);
create_name(filename, PATH_MAX, STORAGEDIR, addr, "names");
ba2str(dst, addr);
str = textfile_get(filename, addr);
if (!str)
return -ENOENT;
snprintf(buf, size, "%s", str);
free(str);
return 0;
}

View File

@ -39,5 +39,3 @@ int bnep_kill_all_connections(void);
int bnep_connadd(int sk, uint16_t role, char *dev);
int bnep_if_up(const char *devname, uint16_t id);
int bnep_if_down(const char *devname);
int read_remote_name(bdaddr_t *src, bdaddr_t *dst, char *buf, size_t size);