From 02f570e4bde9534392040b57f5f3cbcca2235b54 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Thu, 28 Jul 2022 23:38:37 +0200 Subject: Remove libpod/common MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AFAICS it is not used anywhere. Signed-off-by: Miloslav Trmač --- libpod/common/common.go | 16 ---------------- libpod/common/signing_options.go | 10 ---------- 2 files changed, 26 deletions(-) delete mode 100644 libpod/common/common.go delete mode 100644 libpod/common/signing_options.go diff --git a/libpod/common/common.go b/libpod/common/common.go deleted file mode 100644 index 34cabeadc..000000000 --- a/libpod/common/common.go +++ /dev/null @@ -1,16 +0,0 @@ -package common - -// IsTrue determines whether the given string equals "true". -func IsTrue(str string) bool { - return str == "true" -} - -// IsFalse determines whether the given string equals "false". -func IsFalse(str string) bool { - return str == "false" -} - -// IsValidBool determines whether the given string equals "true" or "false". -func IsValidBool(str string) bool { - return IsTrue(str) || IsFalse(str) -} diff --git a/libpod/common/signing_options.go b/libpod/common/signing_options.go deleted file mode 100644 index b7e14be82..000000000 --- a/libpod/common/signing_options.go +++ /dev/null @@ -1,10 +0,0 @@ -package common - -// SigningOptions encapsulates settings that control whether or not we strip or -// add signatures to images when writing them. -type SigningOptions struct { - // RemoveSignatures directs us to remove any signatures which are already present. - RemoveSignatures bool - // SignBy is a key identifier of some kind, indicating that a signature should be generated using the specified private key and stored with the image. - SignBy string -} -- cgit v1.2.3-54-g00ecf