Skip to content

Commit

Permalink
daemon: remove deprecated Daemon.IsPaused
Browse files Browse the repository at this point in the history
This was deprecated in ac6e32c, and
no longer used.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Oct 22, 2024
1 parent 692024a commit 6131322
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions daemon/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ func (daemon *Daemon) GetContainer(prefixOrName string) (*container.Container, e
return ctr, nil
}

// IsPaused returns a bool indicating if the specified container is paused.
//
// Deprecated: use [Daemon.GetContainer] to look up a container by ID, Name, or ID-prefix, and use [container.State.IsPaused]. This function will be removed in the next release.
func (daemon *Daemon) IsPaused(id string) bool {
c, _ := daemon.GetContainer(id)
return c.State.IsPaused()
}

func (daemon *Daemon) containerRoot(id string) string {
return filepath.Join(daemon.repository, id)
}
Expand Down

0 comments on commit 6131322

Please sign in to comment.