From 88fd70abbd9ff5438134849c0d18fcd670376182 Mon Sep 17 00:00:00 2001 From: Silvio Moioli Date: Fri, 5 Jul 2024 10:28:54 +0200 Subject: [PATCH] sql: drop dead code Signed-off-by: Silvio Moioli --- pkg/stores/sqlproxy/proxy_store.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/stores/sqlproxy/proxy_store.go b/pkg/stores/sqlproxy/proxy_store.go index 647ccafa..6cc6c0b4 100644 --- a/pkg/stores/sqlproxy/proxy_store.go +++ b/pkg/stores/sqlproxy/proxy_store.go @@ -293,16 +293,6 @@ func rowToObject(obj *unstructured.Unstructured) { } } -func tableToList(obj *unstructured.UnstructuredList) { - if obj.Object["kind"] != "Table" || - (obj.Object["apiVersion"] != "meta.k8s.io/v1" && - obj.Object["apiVersion"] != "meta.k8s.io/v1beta1") { - return - } - - obj.Items = tableToObjects(obj.Object) -} - func tableToObjects(obj map[string]interface{}) []unstructured.Unstructured { var result []unstructured.Unstructured