Remove dead code

Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
David Gageot 2015-12-26 13:38:35 +01:00
parent f56dab0676
commit 0cd8312e72
1 changed files with 0 additions and 21 deletions

View File

@ -66,8 +66,6 @@ const (
RestartMethod = `.Restart` RestartMethod = `.Restart`
KillMethod = `.Kill` KillMethod = `.Kill`
UpgradeMethod = `.Upgrade` UpgradeMethod = `.Upgrade`
LocalArtifactPathMethod = `.LocalArtifactPath`
GlobalArtifactPathMethod = `.GlobalArtifactPath`
) )
func (ic *InternalClient) Call(serviceMethod string, args interface{}, reply interface{}) error { func (ic *InternalClient) Call(serviceMethod string, args interface{}, reply interface{}) error {
@ -346,25 +344,6 @@ func (c *RPCClientDriver) Kill() error {
return c.Client.Call(KillMethod, struct{}{}, nil) return c.Client.Call(KillMethod, struct{}{}, nil)
} }
func (c *RPCClientDriver) LocalArtifactPath(file string) string {
var path string
if err := c.Client.Call(LocalArtifactPathMethod, file, &path); err != nil {
log.Warnf("Error attempting call to get LocalArtifactPath: %s", err)
}
return path
}
func (c *RPCClientDriver) GlobalArtifactPath() string {
globalArtifactPath, err := c.rpcStringCall(GlobalArtifactPathMethod)
if err != nil {
log.Warnf("Error attempting call to get GlobalArtifactPath: %s", err)
}
return globalArtifactPath
}
func (c *RPCClientDriver) Upgrade() error { func (c *RPCClientDriver) Upgrade() error {
return c.Client.Call(UpgradeMethod, struct{}{}, nil) return c.Client.Call(UpgradeMethod, struct{}{}, nil)
} }