Skip to content

Commit

Permalink
dev: Remove experimental slices package
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansmares committed Nov 3, 2023
1 parent f2377dd commit a7e27c7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions pkg/band/channel_mask.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ package band
import (
"fmt"
"math"

"golang.org/x/exp/slices"
"slices"
)

// ChMaskCntlPair pairs a ChMaskCntl with a mask.
Expand Down
2 changes: 1 addition & 1 deletion pkg/crypto/join_messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ package crypto_test

import (
"fmt"
"slices"
"testing"

"github.com/mohae/deepcopy"
"github.com/smarty/assertions"
. "go.thethings.network/lorawan-stack/v3/pkg/crypto"
"go.thethings.network/lorawan-stack/v3/pkg/types"
"go.thethings.network/lorawan-stack/v3/pkg/util/test/assertions/should"
"golang.org/x/exp/slices"
)

func TestJoinAcceptEncryption(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/events/redis/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"errors"
"hash/fnv"
"math/rand"
"slices"
"strconv"
"strings"
"sync"
Expand All @@ -34,7 +35,6 @@ import (
"go.thethings.network/lorawan-stack/v3/pkg/task"
"go.thethings.network/lorawan-stack/v3/pkg/ttnpb"
"go.thethings.network/lorawan-stack/v3/pkg/unique"
"golang.org/x/exp/slices"
)

const ttlJitter = 0.01
Expand Down
2 changes: 1 addition & 1 deletion pkg/fetch/basepath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
package fetch_test

import (
"slices"
"testing"

"github.com/smarty/assertions"
"go.thethings.network/lorawan-stack/v3/pkg/fetch"
"go.thethings.network/lorawan-stack/v3/pkg/util/test/assertions/should"
"golang.org/x/exp/slices"
)

type MockInterface struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/gatewayserver/io/udp/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"encoding/binary"
"net"
"slices"
"sync"
"sync/atomic"
"time"
Expand All @@ -34,7 +35,6 @@ import (
"go.thethings.network/lorawan-stack/v3/pkg/types"
"go.thethings.network/lorawan-stack/v3/pkg/unique"
"go.thethings.network/lorawan-stack/v3/pkg/workerpool"
"golang.org/x/exp/slices"
"google.golang.org/protobuf/types/known/timestamppb"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/networkserver/grpc_gsns.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"context"
"fmt"
"runtime/trace"
"slices"

clusterauth "go.thethings.network/lorawan-stack/v3/pkg/auth/cluster"
"go.thethings.network/lorawan-stack/v3/pkg/band"
Expand All @@ -38,7 +39,6 @@ import (
"go.thethings.network/lorawan-stack/v3/pkg/ttnpb"
"go.thethings.network/lorawan-stack/v3/pkg/types"
"go.thethings.network/lorawan-stack/v3/pkg/unique"
"golang.org/x/exp/slices"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/durationpb"
"google.golang.org/protobuf/types/known/emptypb"
Expand Down
2 changes: 1 addition & 1 deletion pkg/networkserver/mac/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"fmt"
"math"
"slices"

"go.thethings.network/lorawan-stack/v3/pkg/band"
"go.thethings.network/lorawan-stack/v3/pkg/crypto"
Expand All @@ -31,7 +32,6 @@ import (
"go.thethings.network/lorawan-stack/v3/pkg/specification/macspec"
"go.thethings.network/lorawan-stack/v3/pkg/ttnpb"
"go.thethings.network/lorawan-stack/v3/pkg/types"
"golang.org/x/exp/slices"
)

func channelDataRateRange(
Expand Down

0 comments on commit a7e27c7

Please sign in to comment.