mirror of
1
Fork 0

Remove unused helper function I copied

This commit is contained in:
ewin 2025-03-03 17:23:16 -05:00
parent 92d363d028
commit 1af504408b
No known key found for this signature in database
1 changed files with 0 additions and 15 deletions
internal/gtsmodel

View File

@ -388,21 +388,6 @@ const (
StatusContentTypeDefault = StatusContentTypePlain 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 // Content models the simple string content
// of a status along with its ContentMap, // of a status along with its ContentMap,
// which contains content entries keyed by // which contains content entries keyed by