Skip to content

Commit

Permalink
delete unused cache
Browse files Browse the repository at this point in the history
We aren't using this anywhere and it's not named properly for what it
is. We should either rename it or delete it (both break the package
API).
  • Loading branch information
mikedanese committed Oct 29, 2019
1 parent 5f900f6 commit 0e69316
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 182 deletions.
1 change: 0 additions & 1 deletion hack/.golint_failures
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ staging/src/k8s.io/apimachinery/pkg/runtime/testing
staging/src/k8s.io/apimachinery/pkg/selection
staging/src/k8s.io/apimachinery/pkg/test
staging/src/k8s.io/apimachinery/pkg/types
staging/src/k8s.io/apimachinery/pkg/util/cache
staging/src/k8s.io/apimachinery/pkg/util/clock
staging/src/k8s.io/apimachinery/pkg/util/errors
staging/src/k8s.io/apimachinery/pkg/util/framer
Expand Down
10 changes: 2 additions & 8 deletions staging/src/k8s.io/apimachinery/pkg/util/cache/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ load(

go_test(
name = "go_default_test",
srcs = [
"cache_test.go",
"lruexpirecache_test.go",
],
srcs = ["lruexpirecache_test.go"],
embed = [":go_default_library"],
deps = [
"//staging/src/k8s.io/apimachinery/pkg/util/clock:go_default_library",
Expand All @@ -21,10 +18,7 @@ go_test(

go_library(
name = "go_default_library",
srcs = [
"cache.go",
"lruexpirecache.go",
],
srcs = ["lruexpirecache.go"],
importmap = "k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/cache",
importpath = "k8s.io/apimachinery/pkg/util/cache",
deps = ["//vendor/github.com/hashicorp/golang-lru:go_default_library"],
Expand Down
83 changes: 0 additions & 83 deletions staging/src/k8s.io/apimachinery/pkg/util/cache/cache.go

This file was deleted.

90 changes: 0 additions & 90 deletions staging/src/k8s.io/apimachinery/pkg/util/cache/cache_test.go

This file was deleted.

0 comments on commit 0e69316

Please sign in to comment.