Skip to content

Commit

Permalink
fix: delete unused cmd and features (#22)
Browse files Browse the repository at this point in the history
* fix: delete unuse cmd and features

* fix: fix mode

* fix:fix test_go_test

* fix: test_go_test
  • Loading branch information
rockca authored and Daniel Wang committed Dec 30, 2021
1 parent b81f134 commit 36a1f45
Show file tree
Hide file tree
Showing 25 changed files with 1 addition and 2,914 deletions.
5 changes: 0 additions & 5 deletions cmd/btfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
commands "github.com/bittorrent/go-btfs/core/commands"
"github.com/bittorrent/go-btfs/core/commands/cmdenv"
"github.com/bittorrent/go-btfs/core/commands/storage/path"
"github.com/bittorrent/go-btfs/core/commands/storage/upload/helper"
corehttp "github.com/bittorrent/go-btfs/core/corehttp"
httpremote "github.com/bittorrent/go-btfs/core/corehttp/remote"
corerepo "github.com/bittorrent/go-btfs/core/corerepo"
Expand Down Expand Up @@ -651,10 +650,6 @@ func daemonFunc(req *cmds.Request, re cmds.ResponseEmitter, env cmds.Environment
spin.Analytics(api, cctx.ConfigRoot, node, version.CurrentVersionNumber, hValue)
spin.Hosts(node, env)
spin.Contracts(node, req, env, nodepb.ContractStat_HOST.String())
if params, err := helper.ExtractContextParams(req, env); err == nil {
spin.NewWalletWrap(params).UpdateStatus()
}
spin.BttTransactions(node, env)

// Give the user some immediate feedback when they hit C-c
go func() {
Expand Down
18 changes: 0 additions & 18 deletions core/commands/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,24 +268,6 @@ func TestCommands(t *testing.T) {
"/guard",
"/guard/test",
"/guard/test/send-challenges",
"/wallet",
"/wallet/generate_key",
"/wallet/balance",
"/wallet/withdraw",
"/wallet/deposit",
"/wallet/keys",
"/wallet/password",
"/wallet/transactions",
"/wallet/transfer",
"/wallet/import",
"/wallet/discovery",
"/wallet/validate_password",
"/wallet/init",
"/tron",
"/tron/prepare",
"/tron/send",
"/tron/status",
"/tron/balance",
"/cheque",
"/cheque/bttbalance",
"/cheque/cash",
Expand Down
2 changes: 0 additions & 2 deletions core/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ var rootSubcommands = map[string]*cmds.Command{
"storage": storage.StorageCmd,
"metadata": MetadataCmd,
"guard": GuardCmd,
"wallet": WalletCmd,
"tron": TronCmd,
"cheque": cheque.ChequeCmd,
"vault": vault.VaultCmd,
"settlement": settlement.SettlementCmd,
Expand Down
159 changes: 0 additions & 159 deletions core/commands/tron.go

This file was deleted.

Loading

0 comments on commit 36a1f45

Please sign in to comment.