Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
zambien committed Nov 2, 2019
1 parent 2c8e61e commit e88b2f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions apigee/resource_company.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ func setCompanyData(d *schema.ResourceData) (apigee.Company, error) {
d.Set("display_name", d.Get("name"))
}

apps := []string{""}
if d.Get("apps") != nil {
apps = getStringList("apps", d)
}

attributes := []apigee.Attribute{}
if d.Get("attributes") != nil {
attributes = attributesFromMap(d.Get("attributes").(map[string]interface{}))
Expand All @@ -161,7 +156,6 @@ func setCompanyData(d *schema.ResourceData) (apigee.Company, error) {
DisplayName: d.Get("display_name").(string),
Attributes: attributes,

Apps: apps,
Status: d.Get("status").(string),
}

Expand Down
6 changes: 0 additions & 6 deletions apigee/resource_developer.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ func setDeveloperData(d *schema.ResourceData) (apigee.Developer, error) {

log.Print("[DEBUG] setDeveloperData START")

apps := []string{""}
if d.Get("apps") != nil {
apps = getStringList("apps", d)
}

attributes := []apigee.Attribute{}
if d.Get("attributes") != nil {
attributes = attributesFromMap(d.Get("attributes").(map[string]interface{}))
Expand All @@ -167,7 +162,6 @@ func setDeveloperData(d *schema.ResourceData) (apigee.Developer, error) {
LastName: d.Get("last_name").(string),
UserName: d.Get("user_name").(string),
Attributes: attributes,
Apps: apps,
}

return Developer, nil
Expand Down

0 comments on commit e88b2f7

Please sign in to comment.