Skip to content

Commit

Permalink
chore: clean up some dead code/imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Jan 20, 2025
1 parent a3dd47c commit b6e6ad9
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 386 deletions.
1 change: 0 additions & 1 deletion .go-arch-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ components:
internal: { in: internal/** }
ftl-version: { in: . }

libdal: { in: backend/libdal/** }
lease-service: { in: backend/lease/** }
cron-service: { in: backend/cron/** }
ingress-service: { in: backend/ingress/** }
Expand Down
1 change: 0 additions & 1 deletion backend/admin/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"connectrpc.com/connect"
"github.com/IBM/sarama"
_ "github.com/jackc/pgx/v5/stdlib"

pubsubpb "github.com/block/ftl/backend/protos/xyz/block/ftl/pubsub/v1"
"github.com/block/ftl/backend/protos/xyz/block/ftl/pubsub/v1/pubsubpbconnect"
Expand Down
7 changes: 1 addition & 6 deletions backend/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"connectrpc.com/connect"
"github.com/alecthomas/types/optional"
"github.com/alecthomas/types/result"
"github.com/jackc/pgx/v5"
"github.com/jellydator/ttlcache/v3"
"github.com/jpillora/backoff"
"golang.org/x/exp/maps"
Expand Down Expand Up @@ -957,11 +956,7 @@ func (s *Service) getDeployment(ctx context.Context, dkey key.Deployment) (*sche
return nil, fmt.Errorf("failed to get schema state: %w", err)
}
deployment, err := view.GetDeployment(dkey)
if errors.Is(err, pgx.ErrNoRows) {
logger := s.getDeploymentLogger(ctx, dkey)
logger.Errorf(err, "Deployment not found")
return nil, connect.NewError(connect.CodeNotFound, errors.New("deployment not found"))
} else if err != nil {
if err != nil {
return nil, connect.NewError(connect.CodeInternal, fmt.Errorf("could not retrieve deployment: %w", err))
}
return deployment, nil
Expand Down
57 changes: 0 additions & 57 deletions backend/libdal/errors.go

This file was deleted.

139 changes: 0 additions & 139 deletions backend/libdal/libdal.go

This file was deleted.

Loading

0 comments on commit b6e6ad9

Please sign in to comment.