Tidy up commented code

This commit is contained in:
Arthur Barr
2019-02-26 09:15:28 +00:00
committed by Arthur Barr
parent cc0f072908
commit 4f57d1bae2
4 changed files with 0 additions and 14 deletions

View File

@@ -72,17 +72,6 @@ func GetSecurityAttributes() string {
return a
}
// func logUser() {
// u, err := user.GetUser()
// if err == nil {
// if len(u.SupplementalGID) == 0 {
// log.Printf("Running as user ID %v (%v) with primary group %v", u.UID, u.Name, u.PrimaryGID)
// } else {
// log.Printf("Running as user ID %v (%v) with primary group %v, and supplementary groups %v", u.UID, u.Name, u.PrimaryGID, strings.Join(u.SupplementalGID, ","))
// }
// }
// }
func readProc(filename string) (value string, err error) {
// #nosec G304
buf, err := ioutil.ReadFile(filename)

View File

@@ -110,7 +110,6 @@ func GetFilesystem(path string) (string, error) {
t, ok := fsTypes[int64(statfs.Type)]
if !ok {
return "unknown", nil
// log.Printf("WARNING: detected %v has unknown filesystem type %x", path, statfs.Type)
}
return t, nil
}

View File

@@ -73,7 +73,6 @@ func getCurrentUserGroups() ([]string, error) {
out = strings.TrimSpace(out)
if out == "" {
// we don't have any groups?
return nilArray, fmt.Errorf("Unable to determine groups for current user")
}

View File

@@ -241,7 +241,6 @@ func runContainerWithPorts(t *testing.T, cli *client.Client, containerConfig *co
hostConfig := container.HostConfig{
Binds: []string{
coverageBind(t),
// terminationBind(t),
},
PortBindings: nat.PortMap{},
CapDrop: []string{