From 1a0917de357f03d598996897bac78283a49c4ec2 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 18 Jun 2025 13:56:57 +0200 Subject: [PATCH] pkg/errorhandling: remove deadcode Signed-off-by: Paul Holzinger --- pkg/errorhandling/errorhandling.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/errorhandling/errorhandling.go b/pkg/errorhandling/errorhandling.go index 4ce6a89a9f..a63ea09115 100644 --- a/pkg/errorhandling/errorhandling.go +++ b/pkg/errorhandling/errorhandling.go @@ -59,14 +59,6 @@ func StringsToErrors(strErrs []string) []error { return errs } -// SyncQuiet syncs a file and logs any error. Should only be used within -// a defer. -func SyncQuiet(f *os.File) { - if err := f.Sync(); err != nil { - logrus.Errorf("Unable to sync file %s: %q", f.Name(), err) - } -} - // CloseQuiet closes a file and logs any error. Should only be used within // a defer. func CloseQuiet(f *os.File) {