chore: delete dead kernel Go code

Remove orphaned channel/message type comments from interfaces.go,
unused roleFilterType() function from pages.go, and stale version
comment from main.go.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-31 12:14:40 +00:00
parent 09bd45adad
commit a28f9e0573
3 changed files with 1 additions and 22 deletions

View File

@@ -59,13 +59,10 @@ func main() {
// ── Server startup ────────────────────── // ── Server startup ──────────────────────
cfg := config.Load() cfg := config.Load()
// v0.33.0: Structured logging — must be first so all subsequent // Structured logging — must be first so all subsequent
// log output goes through slog. // log output goes through slog.
logging.Init(cfg.LogFormat, cfg.LogLevel) logging.Init(cfg.LogFormat, cfg.LogLevel)
// v0.29.1: Config-file provider types (Ollama, LiteLLM, vLLM, etc.)
var stores store.Stores var stores store.Stores
uekCache := crypto.NewUEKCache() uekCache := crypto.NewUEKCache()
var keyResolver *crypto.KeyResolver var keyResolver *crypto.KeyResolver

View File

@@ -278,7 +278,6 @@ func (e *Engine) parseTemplates() {
"toJSON": toJSON, "toJSON": toJSON,
"eq": func(a, b string) bool { return a == b }, "eq": func(a, b string) bool { return a == b },
"contains": stringContains, "contains": stringContains,
"roleFilterType": roleFilterType,
"esc": template.HTMLEscapeString, "esc": template.HTMLEscapeString,
"safeHTML": func(s string) template.HTML { return template.HTML(s) }, "safeHTML": func(s string) template.HTML { return template.HTML(s) },
"join": strings.Join, "join": strings.Join,
@@ -919,18 +918,6 @@ func stringContains(haystack []string, needle string) bool {
return false return false
} }
// roleFilterType returns the model_type filter for a given role name.
func roleFilterType(role string) string {
switch role {
case "embedding":
return "embedding"
case "utility":
return "chat"
default:
return ""
}
}
// dict creates a map from alternating key/value pairs for template use. // dict creates a map from alternating key/value pairs for template use.
func dict(pairs ...any) map[string]any { func dict(pairs ...any) map[string]any {
m := make(map[string]any, len(pairs)/2) m := make(map[string]any, len(pairs)/2)

View File

@@ -175,11 +175,6 @@ type TeamStore interface {
MergeSettings(ctx context.Context, teamID, settingsJSON string) error MergeSettings(ctx context.Context, teamID, settingsJSON string) error
} }
// ChannelListFilter holds filter options for ChannelStore.ListFiltered.
// ChannelListItem is returned by ListFiltered and GetForUser.
// ArchivedChannel is a view model for the admin archived channels list.
// MessageWithSender is returned by MessageStore.ListWithSenderInfo.
// ChannelSearchResult is returned by MessageStore.SearchInChannel.
// ========================================= // =========================================
// AUDIT STORE // AUDIT STORE
// ========================================= // =========================================