Skip to content

Commit 84ff584

Browse files
committed
more unused stuff
1 parent b356514 commit 84ff584

File tree

4 files changed

+2
-28
lines changed

4 files changed

+2
-28
lines changed

app/src/main/scala/com/kubukoz/next/OAuth.scala

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ object OAuth {
3636

3737
def fromKernel[F[_]: Config.Ask: Concurrent](client: Client[F], kernel: Kernel[F]): OAuth[F] = new OAuth[F] {
3838

39-
private val baseUri = uri"https://accounts.spotify.com"
40-
4139
def refreshToken(token: RefreshToken): F[Token] =
4240
kernel
4341
.refreshToken(token)

app/src/main/scala/com/kubukoz/next/Spotify.scala

+2-16
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,22 @@
11
package com.kubukoz.next
22

3-
import cats.ApplicativeError
43
import cats.FlatMap
54
import cats.MonadError
65
import cats.data.OptionT
76
import cats.effect.Concurrent
8-
import cats.effect.Ref
97
import cats.implicits.*
10-
import com.kubukoz.next.api.sonos
118
import com.kubukoz.next.client.spotify.Item
129
import com.kubukoz.next.client.spotify.Player
1310
import com.kubukoz.next.client.spotify.PlayerContext
14-
import com.kubukoz.next.client.spotify.TrackUri
1511
import com.kubukoz.next.sonos.GroupId
1612
import com.kubukoz.next.sonos.Milliseconds
1713
import com.kubukoz.next.sonos.SonosApi
1814
import com.kubukoz.next.spotify.SpotifyApi
1915
import com.kubukoz.next.spotify.Track
20-
import io.circe.syntax.*
21-
import org.http4s.Method.DELETE
22-
import org.http4s.Method.POST
23-
import org.http4s.Method.PUT
24-
import org.http4s.Request
25-
import org.http4s.Status
26-
import org.http4s.Uri
27-
import org.http4s.circe.CirceEntityCodec.*
28-
import org.http4s.client.Client
29-
30-
import scala.concurrent.duration.*
3116
import scala.util.chaining.*
3217
import cats.data.NonEmptyList
33-
import com.kubukoz.next.client.spotify.PlaylistUri
18+
import org.http4s.Status
19+
import concurrent.duration.*
3420

3521
trait Spotify[F[_]] {
3622
def skipTrack: F[Unit]

app/src/main/scala/com/kubukoz/next/SpotifyChoice.scala

-7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ import cats.effect.Ref
66
import cats.implicits.*
77
import com.kubukoz.next.Spotify.DeviceInfo
88
import com.kubukoz.next.Spotify.SonosInfo
9-
import com.kubukoz.next.api.sonos
10-
import com.kubukoz.next.client.spotify.Item
11-
import com.kubukoz.next.client.spotify.Player
12-
import com.kubukoz.next.client.spotify.PlayerContext
13-
import com.kubukoz.next.client.spotify.TrackUri
14-
import io.circe.syntax.*
15-
import scala.concurrent.duration.*
169
import cats.data.NonEmptyList
1710

1811
trait SpotifyChoice[F[_]] {

app/src/main/scala/com/kubukoz/next/util/middlewares.scala

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ import org.http4s.client.Client
1515
import org.http4s.headers.`Content-Type`
1616
import org.http4s.headers.Authorization
1717
import org.http4s.EntityEncoder
18-
import org.http4s.Uri.Path
19-
import java.nio.charset.StandardCharsets
20-
import org.http4s.Uri.Path.Segment
2118

2219
object middlewares {
2320

0 commit comments

Comments
 (0)