remove unused func

This commit is contained in:
Adrien Delorme 2019-05-23 17:33:46 +02:00
parent 7005958155
commit 478f80af83
1 changed files with 0 additions and 10 deletions

View File

@ -1,7 +1,6 @@
package powershell package powershell
import ( import (
"fmt"
"reflect" "reflect"
) )
@ -20,15 +19,6 @@ const (
ExecutionPolicyNone // not set 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) { func StringToExecutionPolicyHook(f reflect.Kind, t reflect.Kind, data interface{}) (interface{}, error) {
if f != reflect.String || t != reflect.Int { if f != reflect.String || t != reflect.Int {
return data, nil return data, nil