Feat v0.6.3 dead code sweep #38

Merged
xcaliber merged 10 commits from feat/v0.6.3-dead-code-sweep into main 2026-03-31 12:37:48 +00:00
3 changed files with 1 additions and 22 deletions
Showing only changes of commit a28f9e0573 - Show all commits

View File

@@ -59,13 +59,10 @@ func main() {
// ── Server startup ──────────────────────
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.
logging.Init(cfg.LogFormat, cfg.LogLevel)
// v0.29.1: Config-file provider types (Ollama, LiteLLM, vLLM, etc.)
var stores store.Stores
uekCache := crypto.NewUEKCache()
var keyResolver *crypto.KeyResolver

View File

@@ -278,7 +278,6 @@ func (e *Engine) parseTemplates() {
"toJSON": toJSON,
"eq": func(a, b string) bool { return a == b },
"contains": stringContains,
"roleFilterType": roleFilterType,
"esc": template.HTMLEscapeString,
"safeHTML": func(s string) template.HTML { return template.HTML(s) },
"join": strings.Join,
@@ -919,18 +918,6 @@ func stringContains(haystack []string, needle string) bool {
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.
func dict(pairs ...any) map[string]any {
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
}
// 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
// =========================================