Skip to content

Commit

Permalink
[FAB-8491] remove def folder
Browse files Browse the repository at this point in the history
Change-Id: Ic8189d7e7de3ced180bbde32d0b1e91eaa3cfa34
Signed-off-by: Troy Ronda <[email protected]>
  • Loading branch information
troyronda committed Feb 24, 2018
1 parent 834bdb3 commit e213fb6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 137 deletions.
107 changes: 0 additions & 107 deletions def/fabapi/deprecated.go

This file was deleted.

13 changes: 4 additions & 9 deletions pkg/fabsdk/factory/defcore/corefactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import (

// ProviderFactory represents the default SDK provider factory.
type ProviderFactory struct {
// stateStoreOpts is deprecated
stateStoreOpts StateStoreOptsDeprecated
}

// NewProviderFactory returns the default SDK provider factory.
Expand All @@ -37,14 +35,11 @@ func NewProviderFactory() *ProviderFactory {
// CreateStateStoreProvider creates a KeyValueStore using the SDK's default implementation
func (f *ProviderFactory) CreateStateStoreProvider(config core.Config) (contextApi.KVStore, error) {

var stateStorePath = f.stateStoreOpts.Path
if stateStorePath == "" {
clientCofig, err := config.Client()
if err != nil {
return nil, errors.WithMessage(err, "Unable to retrieve client config")
}
stateStorePath = clientCofig.CredentialStore.Path
clientCofig, err := config.Client()
if err != nil {
return nil, errors.WithMessage(err, "Unable to retrieve client config")
}
stateStorePath := clientCofig.CredentialStore.Path

stateStore, err := kvs.New(&kvs.FileKeyValueStoreOptions{Path: stateStorePath})
if err != nil {
Expand Down
20 changes: 0 additions & 20 deletions pkg/fabsdk/factory/defcore/deprecated.go

This file was deleted.

1 change: 0 additions & 1 deletion test/scripts/check_lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ GOIMPORTS_CMD=goimports
PROJECT_PATH=$GOPATH/src/github.com/hyperledger/fabric-sdk-go

declare -a arr=(
"./def"
"./pkg"
"./test"
)
Expand Down

0 comments on commit e213fb6

Please sign in to comment.