chore: remove unnecessary dependency

This commit is contained in:
Adriano Caloiaro 2024-10-10 08:44:56 -07:00
parent fad1c1efc7
commit 2ad0f5c595
No known key found for this signature in database
GPG key ID: C2BC56DE73CE3F75
5 changed files with 5 additions and 12 deletions

View file

@ -17,7 +17,6 @@ import (
"github.com/acaloiaro/di-tui/config"
"github.com/acaloiaro/di-tui/context"
"github.com/acaloiaro/di-tui/player"
"github.com/bradfitz/iter"
ini "gopkg.in/ini.v1"
)
@ -199,7 +198,7 @@ func ListFavorites(ctx *context.AppContext) (favorites []components.FavoriteItem
sec := "playlist"
numEntries := cfg.Section(sec).Key("NumberOfEntries").MustInt(0)
for i := range iter.N(numEntries) {
for i := range numEntries {
// di.fm's PLS keys begin at 1
k := i + 1
favorites = append(favorites, components.FavoriteItem{

View file

@ -648,11 +648,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1708751719,
"narHash": "sha256-0uWOKSpXJXmXswOvDM5Vk3blB74apFB6rNGWV5IjoN0=",
"lastModified": 1728538411,
"narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "f63ce824cd2f036216eb5f637dfef31e1a03ee89",
"rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221",
"type": "github"
},
"original": {

3
go.mod
View file

@ -1,9 +1,8 @@
module github.com/acaloiaro/di-tui
go 1.21
go 1.22
require (
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8
github.com/gdamore/tcell/v2 v2.6.0
github.com/godbus/dbus/v5 v5.1.0
github.com/hajimehoshi/go-mp3 v0.2.1

2
go.sum
View file

@ -7,8 +7,6 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 h1:GKTyiRCL6zVf5wWaqKnf+7Qs6GbEPfd4iMOitWzXJx8=
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8/go.mod h1:spo1JLcs67NmW1aVLEgtA8Yy1elc+X8y5SRW1sFW4Og=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=

View file

@ -1,9 +1,6 @@
schema = 3
[mod]
[mod."github.com/bradfitz/iter"]
version = "v0.0.0-20191230175014-e8f45d346db8"
hash = "sha256-CZQf2C0EmqsokHGoIEECGgzp7qxdZxWo+U5nWqELHuM="
[mod."github.com/fsnotify/fsnotify"]
version = "v1.4.7"
hash = "sha256-j/Ts92oXa3k1MFU7Yd8/AqafRTsFn7V2pDKCyDJLah8="