From c6ac3c4bde34b617e63ef00b4dcfaf19fbc0bef9 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 1 Oct 2020 00:04:43 +0200 Subject: [PATCH] libcontainer/system: remove deprecated GetProcessStartTime GetProcessStartTime was deprecated over three Years ago in 439eaa3584402d239297f278cc1f22c08dbdcc17, so we may as well remove it now. Signed-off-by: Sebastiaan van Stijn --- libcontainer/system/proc.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libcontainer/system/proc.go b/libcontainer/system/proc.go index 0dbff54d6..b73cf70b4 100644 --- a/libcontainer/system/proc.go +++ b/libcontainer/system/proc.go @@ -71,16 +71,6 @@ func Stat(pid int) (stat Stat_t, err error) { return parseStat(string(bytes)) } -// GetProcessStartTime is deprecated. Use Stat(pid) and -// Stat_t.StartTime instead. -func GetProcessStartTime(pid int) (string, error) { - stat, err := Stat(pid) - if err != nil { - return "", err - } - return strconv.FormatUint(stat.StartTime, 10), nil -} - func parseStat(data string) (stat Stat_t, err error) { // From proc(5), field 2 could contain space and is inside `(` and `)`. // The following is an example: