Remove unused code and unnecessary conversion

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2017-01-06 16:10:13 -08:00
parent 1a9dd2678d
commit a47e433428
1 changed files with 3 additions and 7 deletions

View File

@ -224,10 +224,6 @@ container on your host.`,
} }
func sPtr(s string) *string { return &s } func sPtr(s string) *string { return &s }
func rPtr(r rune) *rune { return &r }
func iPtr(i int64) *int64 { return &i }
func u32Ptr(i int64) *uint32 { u := uint32(i); return &u }
func fmPtr(i int64) *os.FileMode { fm := os.FileMode(i); return &fm }
// loadSpec loads the specification from the provided path. // loadSpec loads the specification from the provided path.
func loadSpec(cPath string) (spec *specs.Spec, err error) { func loadSpec(cPath string) (spec *specs.Spec, err error) {
@ -256,8 +252,8 @@ func createLibContainerRlimit(rlimit specs.LinuxRlimit) (configs.Rlimit, error)
} }
return configs.Rlimit{ return configs.Rlimit{
Type: rl, Type: rl,
Hard: uint64(rlimit.Hard), Hard: rlimit.Hard,
Soft: uint64(rlimit.Soft), Soft: rlimit.Soft,
}, nil }, nil
} }