Skip to content

Commit

Permalink
Unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Nov 29, 2023
1 parent c91f336 commit b356514
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 41 deletions.
1 change: 0 additions & 1 deletion app/src/main/scala/com/kubukoz/next/Analysis.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.kubukoz.next.spotify.GetAudioAnalysisOutput
import com.kubukoz.next.spotify.SpotifyApi
import com.kubukoz.next.client.spotify.TrackUri
import cats.effect.kernel.Ref
import cats.FlatMap
import cats.implicits.*
import cats.effect.kernel.MonadCancel

Expand Down
1 change: 0 additions & 1 deletion app/src/main/scala/com/kubukoz/next/ConfigLoader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.kubukoz.next
import com.kubukoz.next.util.Config
import io.circe.syntax.*
import io.circe.Printer
import java.nio.file.StandardOpenOption
import java.nio.file.NoSuchFileException
import com.kubukoz.next.util.ConsoleRead
import cats.effect.*
Expand Down
5 changes: 2 additions & 3 deletions app/src/main/scala/com/kubukoz/next/Login.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.kubukoz.next

import cats.effect.kernel.Async
import cats.effect.kernel.Deferred
import cats.effect.kernel.Resource
import cats.implicits.*
import com.kubukoz.next.util.Config
import com.kubukoz.next.util.Config.RefreshToken
Expand All @@ -11,8 +10,8 @@ import org.http4s.HttpRoutes
import org.http4s.dsl.Http4sDsl
import org.http4s.implicits.*
import cats.MonadThrow
import com.comcast.ip4s.*
import org.http4s.ember.server.EmberServerBuilder
import fs2.io.net.Network

trait Login[F[_]] {
def server: F[OAuth.Tokens]
Expand All @@ -22,7 +21,7 @@ trait Login[F[_]] {
object Login {
def apply[F[_]](using F: Login[F]): Login[F] = F

def ember[F[_]: UserOutput: Config.Ask: Async](
def ember[F[_]: UserOutput: Config.Ask: Network: Async](
oauth: OAuth[F]
): Login[F] =
new Login[F] {
Expand Down
1 change: 0 additions & 1 deletion app/src/main/scala/com/kubukoz/next/LoginProcess.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import monocle.Lens
import com.kubukoz.next.util.Config.RefreshToken
import com.kubukoz.next.util.Config.Token
import cats.Applicative
import cats.Foldable
import cats.kernel.Monoid

trait LoginProcess[F[_]] {
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/scala/com/kubukoz/next/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ import com.kubukoz.next.api.sonos
import com.monovore.decline.*
import com.monovore.decline.effect.*
import cats.effect.implicits.*
import java.io.EOFException
import LoginProcess.given
import org.typelevel.log4cats.Logger
// import org.typelevel.log4cats.slf4j.Slf4jLogger
import org.typelevel.log4cats.noop.NoOpLogger
import cats.effect.unsafe.IORuntime
import fs2.io.file.Files
import fs2.io.net.Network
import org.http4s.client.Client
import cats.effect.Concurrent
import monocle.Lens
import com.kubukoz.next.util.Config.RefreshToken
import com.kubukoz.next.util.Config.Token
Expand Down Expand Up @@ -72,7 +69,7 @@ object Main extends CommandIOApp(name = "spotify-next", header = "spotify-next:
given Logger[IO] = NoOpLogger[IO]
// given Logger[IO] = Slf4jLogger.getLogger[IO]

def makeLogin[F[_]: Config.Ask: ConfigLoader: UserOutput: Async](
def makeLogin[F[_]: Config.Ask: ConfigLoader: UserOutput: Network: Async](
name: String,
rawClient: Client[F],
oauthKernel: OAuth.Kernel[F]
Expand Down
46 changes: 21 additions & 25 deletions app/src/main/scala/com/kubukoz/next/Program.scala
Original file line number Diff line number Diff line change
@@ -1,47 +1,43 @@
package com.kubukoz.next

import cats.MonadThrow
import cats.data.OptionT
import cats.effect.Concurrent
import cats.effect.Sync
import cats.effect.MonadCancelThrow
import cats.effect.Resource
import cats.effect.Sync
import cats.effect.kernel.Async
import cats.effect.kernel.Ref
import cats.effect.std.Console
import cats.implicits.*
import com.kubukoz.next.Spotify.DeviceInfo
import com.kubukoz.next.Spotify.SonosInfo
import com.kubukoz.next.api.sonos
import com.kubukoz.next.sonos.SonosApi
import com.kubukoz.next.sonos.SonosApiGen
import com.kubukoz.next.spotify.SpotifyApi
import com.kubukoz.next.spotify.SpotifyApiGen
import com.kubukoz.next.util.Config
import com.kubukoz.next.util.Config.Token
import com.kubukoz.next.util.middlewares
import com.kubukoz.next.api.sonos
import fs2.io.file.Files
import monocle.Getter
import fs2.io.file.Path
import fs2.io.net.Network
import org.http4s.Charset
import org.http4s.MediaType
import org.http4s.client.Client
import org.http4s.client.middleware.FollowRedirect
import org.http4s.client.middleware.RequestLogger
import org.http4s.client.middleware.ResponseLogger
import java.lang.System
import java.nio.file.Paths
import fs2.io.file.Path
import cats.data.OptionT
import cats.MonadThrow
import org.http4s.implicits.*
import smithy4s.http4s.SimpleRestJsonBuilder
import com.kubukoz.next.spotify.SpotifyApiGen
import com.kubukoz.next.spotify.SpotifyApi
import com.kubukoz.next.sonos.SonosApiGen
import com.kubukoz.next.sonos.SonosApi
import org.http4s.Request
import com.kubukoz.next.util.Config.RefreshToken
import org.http4s.MediaType
import org.http4s.Charset
import org.http4s.headers.`Content-Type`
import com.kubukoz.next.Spotify.SonosInfo.Group
import com.kubukoz.next.Spotify.SonosInfo
import com.kubukoz.next.Spotify.DeviceInfo
import org.http4s.ember.client.EmberClientBuilder
import org.typelevel.log4cats.Logger
import fs2.io.net.Network
import org.http4s.client.middleware.Retry
import org.http4s.client.middleware.RetryPolicy
import org.http4s.ember.client.EmberClientBuilder
import org.http4s.headers.`Content-Type`
import org.typelevel.log4cats.Logger
import smithy4s.http4s.SimpleRestJsonBuilder

import java.lang.System

import concurrent.duration.*

object Program {
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/scala/com/kubukoz/next/client/spotify.scala
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
package com.kubukoz.next.client

import scala.reflect.ClassTag
import cats.data.NonEmptyList
import com.kubukoz.next.Spotify.Error.*
import io.circe.Codec
import io.circe.Decoder
import io.circe.Encoder
import io.circe.syntax.*
import monocle.PLens
import org.http4s.EntityDecoder
import org.http4s.Uri
import cats.Functor
import cats.implicits.*
import cats.effect.Concurrent
import scala.reflect.TypeTest
import org.http4s.implicits.*
import scala.concurrent.duration.*
import com.kubukoz.next.spotify.GetPlayerOutput

Expand Down

0 comments on commit b356514

Please sign in to comment.