浏览代码

cleanup: remove unused variable

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
Zhang Wei 10 年之前
父节点
当前提交
12117f349d
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      libnetwork/endpoint.go

+ 0 - 5
libnetwork/endpoint.go

@@ -452,11 +452,6 @@ func (ep *endpoint) buildHostsFiles() error {
 		}
 	}
 
-	name := container.config.hostName
-	if container.config.domainName != "" {
-		name = name + "." + container.config.domainName
-	}
-
 	for _, extraHost := range container.config.extraHosts {
 		extraContent = append(extraContent,
 			etchosts.Record{Hosts: extraHost.name, IP: extraHost.IP})