Remove redundant methods

This commit is contained in:
2025-04-05 15:17:24 -04:00
parent dcf2844318
commit d116525c2b
8 changed files with 16 additions and 29 deletions
+2 -13
View File
@@ -8,17 +8,6 @@ package peercred
// Creds are the peer credentials.
type Creds struct {
pid int
uid string
}
// PID returns the process ID associated with the other side of the connection.
func (c *Creds) PID() (pid int) {
return c.pid
}
// UID returns the userid (or Windows SID) that owns the other side of the connection.
// The returned string is suitable to passing to os/user.LookupId.
func (c *Creds) UID() (uid string) {
return c.uid
PID int
UID string
}