summaryrefslogtreecommitdiff
path: root/libpod/runtime_img.go
diff options
context:
space:
mode:
authorSuraj Deshmukh <surajd.service@gmail.com>2017-11-24 23:01:46 +0530
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-28 14:30:12 +0000
commit7eb4772694ed9b522fe688d8bd12a56ab3be751f (patch)
tree9e3686ca8536a2e93c472afa344ea5e6a446f552 /libpod/runtime_img.go
parentd43f7867282f04d3003c44ee96eb2324c6d2a0aa (diff)
downloadpodman-7eb4772694ed9b522fe688d8bd12a56ab3be751f.tar.gz
podman-7eb4772694ed9b522fe688d8bd12a56ab3be751f.tar.bz2
podman-7eb4772694ed9b522fe688d8bd12a56ab3be751f.zip
remove unused functions and variables
Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com> Closes: #71 Approved by: rhatdan
Diffstat (limited to 'libpod/runtime_img.go')
-rw-r--r--libpod/runtime_img.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go
index 4c81380bb..2b18a5322 100644
--- a/libpod/runtime_img.go
+++ b/libpod/runtime_img.go
@@ -1,7 +1,6 @@
package libpod
import (
- "encoding/json"
"fmt"
"io"
"net"
@@ -112,7 +111,6 @@ type Image struct {
Name string
ID string
fqname string
- hasImageLocal bool //nolint
runtime *Runtime
Registry string
ImageName string
@@ -1192,21 +1190,6 @@ func ParseImageNames(names []string) (tags, digests []string, err error) {
return tags, digests, nil
}
-// Remove nolint when used
-func annotations(manifest []byte, manifestType string) map[string]string { //nolint
- annotations := make(map[string]string)
- switch manifestType {
- case ociv1.MediaTypeImageManifest:
- var m ociv1.Manifest
- if err := json.Unmarshal(manifest, &m); err == nil {
- for k, v := range m.Annotations {
- annotations[k] = v
- }
- }
- }
- return annotations
-}
-
func findImageInSlice(images []storage.Image, ref string) (storage.Image, error) {
for _, image := range images {
if MatchesID(image.ID, ref) {