mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-28 02:34:02 -04:00
remove unused func
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package powershell
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
@@ -20,15 +19,6 @@ const (
|
||||
ExecutionPolicyNone // not set
|
||||
)
|
||||
|
||||
func (ep *ExecutionPolicy) Decode(v interface{}) (err error) {
|
||||
str, ok := v.(string)
|
||||
if !ok {
|
||||
return fmt.Errorf("%#v is not a string", v)
|
||||
}
|
||||
*ep, err = ExecutionPolicyString(str)
|
||||
return err
|
||||
}
|
||||
|
||||
func StringToExecutionPolicyHook(f reflect.Kind, t reflect.Kind, data interface{}) (interface{}, error) {
|
||||
if f != reflect.String || t != reflect.Int {
|
||||
return data, nil
|
||||
|
||||
Reference in New Issue
Block a user