From 61bae6367d1d36d67396c9c282b0ad75a9b6056f Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Mon, 1 Jan 2024 16:37:15 +0100 Subject: [PATCH] [spotify/rtp] Remove some unused functions Closes #1705 --- src/inputs/spotify.c | 11 ----------- src/inputs/spotify.h | 3 --- src/outputs/rtp_common.c | 5 +++-- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/inputs/spotify.c b/src/inputs/spotify.c index 57450370..fd3293e4 100644 --- a/src/inputs/spotify.c +++ b/src/inputs/spotify.c @@ -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) { diff --git a/src/inputs/spotify.h b/src/inputs/spotify.h index a402588e..027b04d3 100644 --- a/src/inputs/spotify.h +++ b/src/inputs/spotify.h @@ -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); diff --git a/src/outputs/rtp_common.c b/src/outputs/rtp_common.c index e5027ad2..873db6d2 100644 --- a/src/outputs/rtp_common.c +++ b/src/outputs/rtp_common.c @@ -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) {