Commit 72872208 authored by Matt Bell's avatar Matt Bell

commands: Removed unused cleanup function

parent 9ad97fa5
......@@ -135,14 +135,6 @@ func (c *Command) Call(req Request) Response {
}
}
// clean up the request (close the readers, e.g. fileargs)
// NOTE: this means commands can't expect to keep reading after cmd.Run returns (in a goroutine)
err = req.Cleanup()
if err != nil {
res.SetError(err, ErrNormal)
return res
}
res.SetOutput(output)
return res
}
......
......@@ -70,7 +70,6 @@ type Request interface {
Context() *Context
SetContext(Context)
Command() *Command
Cleanup() error
ConvertOptions() error
}
......@@ -174,11 +173,6 @@ func (r *request) Command() *Command {
return r.cmd
}
func (r *request) Cleanup() error {
// TODO
return nil
}
type converter func(string) (interface{}, error)
var converters = map[reflect.Kind]converter{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment