Skip to content

Commit

Permalink
Clean up unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Apr 14, 2016
1 parent 7268eb9 commit d231260
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 62 deletions.
20 changes: 0 additions & 20 deletions container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,26 +523,6 @@ func (container *Container) ShouldRestart() bool {
return shouldRestart
}

// AddBindMountPoint adds a new bind mount point configuration to the container.
func (container *Container) AddBindMountPoint(name, source, destination string, rw bool) {
container.MountPoints[destination] = &volume.MountPoint{
Name: name,
Source: source,
Destination: destination,
RW: rw,
}
}

// AddLocalMountPoint adds a new local mount point configuration to the container.
func (container *Container) AddLocalMountPoint(name, destination string, rw bool) {
container.MountPoints[destination] = &volume.MountPoint{
Name: name,
Driver: volume.DefaultDriverName,
Destination: destination,
RW: rw,
}
}

// AddMountPointWithVolume adds a new mount point configured with a volume to the container.
func (container *Container) AddMountPointWithVolume(destination string, vol volume.Volume, rw bool) {
container.MountPoints[destination] = &volume.MountPoint{
Expand Down
13 changes: 0 additions & 13 deletions image/compat_unix.go

This file was deleted.

27 changes: 0 additions & 27 deletions image/compat_windows.go

This file was deleted.

3 changes: 1 addition & 2 deletions volume/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,7 @@ func (r *Root) validateName(name string) error {
// localVolume implements the Volume interface from the volume package and
// represents the volumes created by Root.
type localVolume struct {
m sync.Mutex
usedCount int
m sync.Mutex
// unique name of the volume
name string
// path is the path on the host where the data lives
Expand Down

0 comments on commit d231260

Please sign in to comment.