Skip to content

Commit

Permalink
[spotify/rtp] Remove some unused functions
Browse files Browse the repository at this point in the history
Closes #1705
  • Loading branch information
ejurgensen committed Jan 1, 2024
1 parent 182255c commit 61bae63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
11 changes: 0 additions & 11 deletions src/inputs/spotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
3 changes: 0 additions & 3 deletions src/inputs/spotify.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
5 changes: 3 additions & 2 deletions src/outputs/rtp_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 61bae63

Please sign in to comment.