daemon/setMounts(): remove dead code
| ... | ... |
@@ -498,12 +498,6 @@ func setMounts(daemon *Daemon, s *specs.Spec, c *container.Container, mounts []c |
| 498 | 498 |
|
| 499 | 499 |
s.Mounts = defaultMounts |
| 500 | 500 |
for _, m := range mounts {
|
| 501 |
- for _, cm := range s.Mounts {
|
|
| 502 |
- if cm.Destination == m.Destination {
|
|
| 503 |
- return duplicateMountPointError(m.Destination) |
|
| 504 |
- } |
|
| 505 |
- } |
|
| 506 |
- |
|
| 507 | 501 |
if m.Source == "tmpfs" {
|
| 508 | 502 |
data := m.Data |
| 509 | 503 |
parser := volumemounts.NewParser("linux")
|