Skip to content

Commit

Permalink
Remove warnings and old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bandreghetti committed Jul 13, 2021
1 parent ade0be4 commit 5747200
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 115 deletions.
8 changes: 2 additions & 6 deletions assets/assetType.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,8 @@ func (t AssetType) Keys() (keys []AssetProp) {
func (t AssetType) SubAssets() (subAssets []AssetProp) {
for _, prop := range t.Props {
dataType := prop.DataType
if strings.HasPrefix(dataType, "[]") {
dataType = strings.TrimPrefix(dataType, "[]")
}
if strings.HasPrefix(dataType, "->") {
dataType = strings.TrimPrefix(dataType, "->")
}
dataType = strings.TrimPrefix(dataType, "[]")
dataType = strings.TrimPrefix(dataType, "->")
subAssetType := FetchAssetType(dataType)
if subAssetType != nil {
subAssets = append(subAssets, prop)
Expand Down
35 changes: 0 additions & 35 deletions assets/references_test.go

This file was deleted.

71 changes: 0 additions & 71 deletions assets/setProp_test.go

This file was deleted.

4 changes: 1 addition & 3 deletions assets/startupCheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ func StartupCheck() errors.ICCError {
propLabelSet[label] = struct{}{}

dataTypeName := propDef.DataType
if strings.HasPrefix(dataTypeName, "[]") {
dataTypeName = strings.TrimPrefix(dataTypeName, "[]")
}
dataTypeName = strings.TrimPrefix(dataTypeName, "[]")

var isSubAsset = false
if strings.HasPrefix(dataTypeName, "->") {
Expand Down

0 comments on commit 5747200

Please sign in to comment.