Remove stale code that would never be called at present.

This commit is contained in:
Sean Chittenden 2017-02-06 15:13:42 -08:00
parent 4b73ac7abe
commit 77d7e25018
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 0 additions and 13 deletions

View File

@ -3,7 +3,6 @@ package consul
import ( import (
"fmt" "fmt"
"strconv" "strconv"
"strings"
"github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/schema"
) )
@ -49,18 +48,6 @@ func (w *_AttrWriterMap) SetFloat64(name _SchemaAttr, f float64) error {
func (w *_AttrWriterMap) SetList(name _SchemaAttr, l []interface{}) error { func (w *_AttrWriterMap) SetList(name _SchemaAttr, l []interface{}) error {
panic(fmt.Sprintf("PROVIDER BUG: Cat set a list within a map for %s", name)) panic(fmt.Sprintf("PROVIDER BUG: Cat set a list within a map for %s", name))
out := make([]string, 0, len(l))
for i, v := range l {
switch u := v.(type) {
case string:
out[i] = u
default:
panic(fmt.Sprintf("PROVIDER BUG: SetList type %T not supported (%#v)", v, v))
}
}
(*w.m)[string(name)] = strings.Join(out, ", ")
return nil
} }
func (w *_AttrWriterMap) SetMap(name _SchemaAttr, m map[string]interface{}) error { func (w *_AttrWriterMap) SetMap(name _SchemaAttr, m map[string]interface{}) error {