Browse Source

Remove unused common.go

Matt Bolt 1 năm trước cách đây
mục cha
commit
7d073bd337
1 tập tin đã thay đổi với 0 bổ sung16 xóa
  1. 0 16
      core/pkg/opencost/common.go

+ 0 - 16
core/pkg/opencost/common.go

@@ -1,16 +0,0 @@
-package opencost
-
-// Pair is a generic struct containing a pair of instances, one of each type similar to std::pair
-type Pair[T any, U any] struct {
-	First  T
-	Second U
-}
-
-// Creates a new pair struct containing the provided parameters. This is useful for creating types
-// capable of representing common paired types (result, error), (result, bool), etc...
-func NewPair[T any, U any](first T, second U) Pair[T, U] {
-	return Pair[T, U]{
-		First:  first,
-		Second: second,
-	}
-}