[lxc-devel] [lxd/master] device/proxy: Removes unnecessary CanHotPlug function

tomponline on Github lxc-bot at linuxcontainers.org
Wed Aug 7 15:19:21 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 426 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190807/e8411f67/attachment.bin>
-------------- next part --------------
From ac217b314b328d88acbb2724e7eb80eb1e916b26 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Wed, 7 Aug 2019 16:17:36 +0100
Subject: [PATCH] device/proxy: Removes unnecessary CanHotPlug function

The common device implementation provides the same behaviour.

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 lxd/device/proxy.go | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lxd/device/proxy.go b/lxd/device/proxy.go
index c9e9d5a789..912330e784 100644
--- a/lxd/device/proxy.go
+++ b/lxd/device/proxy.go
@@ -39,10 +39,6 @@ type proxyProcInfo struct {
 	proxyProtocol  string
 }
 
-func (d *proxy) CanHotPlug() (bool, []string) {
-	return true, []string{}
-}
-
 // validateConfig checks the supplied config for correctness.
 func (d *proxy) validateConfig() error {
 	if d.instance.Type() != instance.TypeContainer {


More information about the lxc-devel mailing list