From 206020c3f122d12c04de28f2b0b349d91e76498b Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Tue, 10 Aug 2021 18:09:30 -0700 Subject: [PATCH] main: drop ununsed functions --- main.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/main.go b/main.go index 599cd09..33d5426 100644 --- a/main.go +++ b/main.go @@ -110,22 +110,6 @@ func getHookFiles(filesdir string) misc.StringSet { return files } -func appendUnique(slice []string, item string) []string { - for _, s := range slice { - if s == item { - return slice - } - } - return append(slice, item) -} - -func appendSliceUnique(dest []string, source []string) []string { - for _, s := range source { - dest = appendUnique(dest, s) - } - return dest -} - // Recursively list all dependencies for a given ELF binary func getBinaryDeps(files misc.StringSet, file string) error { // if file is a symlink, resolve dependencies for target