Merge pull request #37703 from kolyshkin/rm-dead-code

daemon/setMounts(): remove dead code
This commit is contained in:
Brian Goff 2018-09-25 16:07:15 -07:00 committed by GitHub
commit 12d5eb8e22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -498,12 +498,6 @@ func setMounts(daemon *Daemon, s *specs.Spec, c *container.Container, mounts []c
s.Mounts = defaultMounts
for _, m := range mounts {
for _, cm := range s.Mounts {
if cm.Destination == m.Destination {
return duplicateMountPointError(m.Destination)
}
}
if m.Source == "tmpfs" {
data := m.Data
parser := volumemounts.NewParser("linux")