remove unused func
This commit is contained in:
parent
7005958155
commit
478f80af83
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue