From c795b8690b1afec38e4a3d3a96a4f45c0e2198b9 Mon Sep 17 00:00:00 2001 From: s7v7nislands Date: Fri, 8 Sep 2017 10:35:46 +0800 Subject: [PATCH] Delete unused function Signed-off-by: Xiaobing Jiang --- libcontainer/specconv/example.go | 2 -- spec.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/libcontainer/specconv/example.go b/libcontainer/specconv/example.go index 8dd37215..0b1cd3b6 100644 --- a/libcontainer/specconv/example.go +++ b/libcontainer/specconv/example.go @@ -7,8 +7,6 @@ import ( "github.com/opencontainers/runtime-spec/specs-go" ) -func sPtr(s string) *string { return &s } - // Example returns an example spec file, with many options set so a user can // see what a standard spec file looks like. func Example() *specs.Spec { diff --git a/spec.go b/spec.go index 6c687e96..26e9754e 100644 --- a/spec.go +++ b/spec.go @@ -114,8 +114,6 @@ generate a proper rootless spec file.`, }, } -func sPtr(s string) *string { return &s } - // loadSpec loads the specification from the provided path. func loadSpec(cPath string) (spec *specs.Spec, err error) { cf, err := os.Open(cPath)