[spotify/rtp] Remove some unused functions

Closes #1705
This commit is contained in:
ejurgensen 2024-01-01 16:37:15 +01:00
parent 182255cac8
commit 61bae6367d
3 changed files with 3 additions and 16 deletions

View File

@ -71,17 +71,6 @@ spotify_deinit(void)
backend->deinit();
}
int
spotify_login(const char *username, const char *password, const char **errmsg)
{
struct spotify_backend *backend = backend_set();
if (!backend || !backend->login)
return -1;
return backend->login(username, password, errmsg);
}
int
spotify_login_token(const char *username, const char *token, const char **errmsg)
{

View File

@ -30,9 +30,6 @@ spotify_init(void);
void
spotify_deinit(void);
int
spotify_login(const char *username, const char *password, const char **errmsg);
int
spotify_login_token(const char *username, const char *token, const char **errmsg);

View File

@ -54,15 +54,16 @@ timespec_to_ntp(struct timespec *ts, struct ntp_timestamp *ns)
ns->frac = (uint32_t)((double)ts->tv_nsec * 1e-9 * FRAC);
}
/*
static inline void
ntp_to_timespec(struct ntp_timestamp *ns, struct timespec *ts)
{
/* Seconds since Unix Epoch (1970-01-01) */
// Seconds since Unix Epoch (1970-01-01)
ts->tv_sec = ns->sec - NTP_EPOCH_DELTA;
ts->tv_nsec = (long)((double)ns->frac / (1e-9 * FRAC));
}
*/
struct rtp_session *
rtp_session_new(struct media_quality *quality, int pktbuf_size, int sync_each_nsamples)
{