aboutsummaryrefslogtreecommitdiff
path: root/object/signed/commit/signature_algorithms.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/signed/commit/signature_algorithms.go')
-rw-r--r--object/signed/commit/signature_algorithms.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/object/signed/commit/signature_algorithms.go b/object/signed/commit/signature_algorithms.go
deleted file mode 100644
index ac763706..00000000
--- a/object/signed/commit/signature_algorithms.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package signedcommit
-
-import objectid "codeberg.org/lindenii/furgit/object/id"
-
-// Algorithms returns the algorithms for which the commit carries signatures.
-func (commit *Commit) Algorithms() []objectid.Algorithm {
- var algorithms []objectid.Algorithm
-
- for _, algo := range objectid.SupportedAlgorithms() {
- if _, ok := commit.signatures[algo]; ok {
- algorithms = append(algorithms, algo)
- }
- }
-
- return algorithms
-}