From 1af504408bcba1fbf926b90263165c860ae43942 Mon Sep 17 00:00:00 2001 From: ewin Date: Mon, 3 Mar 2025 17:23:16 -0500 Subject: [PATCH] Remove unused helper function I copied --- internal/gtsmodel/status.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/internal/gtsmodel/status.go b/internal/gtsmodel/status.go index c630e7790..2bb219ce3 100644 --- a/internal/gtsmodel/status.go +++ b/internal/gtsmodel/status.go @@ -388,21 +388,6 @@ const ( StatusContentTypeDefault = StatusContentTypePlain ) -// String returns the actual MIME string corresponding to a content type. -// NOMERGE: is this actually necessary? i copied this because Visibility has it -// but it kinda seems like it's only used as part of the preferences stuff. do i -// need to touch that for this -func (v StatusContentType) String() string { - switch v { - case StatusContentTypePlain: - return "text/plain" - case StatusContentTypeMarkdown: - return "text/markdown" - default: - panic("invalid status content type") - } -} - // Content models the simple string content // of a status along with its ContentMap, // which contains content entries keyed by