From 7ef276daaa132683ff8b04004f1ce5c992097d14 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 5 Jun 2022 18:27:23 -0600 Subject: arrays can be compared directly --- pkg/btrfs/internal/uuid.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pkg/btrfs/internal') diff --git a/pkg/btrfs/internal/uuid.go b/pkg/btrfs/internal/uuid.go index ff274d9..6169638 100644 --- a/pkg/btrfs/internal/uuid.go +++ b/pkg/btrfs/internal/uuid.go @@ -1,7 +1,6 @@ package internal import ( - "bytes" "encoding/hex" "strings" ) @@ -18,7 +17,3 @@ func (uuid UUID) String() string { str[20:32], }, "-") } - -func (a UUID) Equal(b UUID) bool { - return bytes.Equal(a[:], b[:]) -} -- cgit v1.2.3-2-g168b