Commit 00e871a8 authored by Cao Shufeng's avatar Cao Shufeng

remove unused function and variable from audit backend

parent d026286d
...@@ -19,23 +19,20 @@ package log ...@@ -19,23 +19,20 @@ package log
import ( import (
"fmt" "fmt"
"io" "io"
"strings"
auditinternal "k8s.io/apiserver/pkg/apis/audit" auditinternal "k8s.io/apiserver/pkg/apis/audit"
"k8s.io/apiserver/pkg/audit" "k8s.io/apiserver/pkg/audit"
) )
type backend struct { type backend struct {
out io.Writer out io.Writer
sink chan *auditinternal.Event
} }
var _ audit.Backend = &backend{} var _ audit.Backend = &backend{}
func NewBackend(out io.Writer) *backend { func NewBackend(out io.Writer) *backend {
return &backend{ return &backend{
out: out, out: out,
sink: make(chan *auditinternal.Event, 100),
} }
} }
...@@ -55,11 +52,3 @@ func (b *backend) logEvent(ev *auditinternal.Event) { ...@@ -55,11 +52,3 @@ func (b *backend) logEvent(ev *auditinternal.Event) {
func (b *backend) Run(stopCh <-chan struct{}) error { func (b *backend) Run(stopCh <-chan struct{}) error {
return nil return nil
} }
func auditStringSlice(inList []string) string {
quotedElements := make([]string, len(inList))
for i, in := range inList {
quotedElements[i] = fmt.Sprintf("%q", in)
}
return strings.Join(quotedElements, ",")
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment