mirror of
1
Fork 0

Merge pull request 'modules/markup/markdown/ast: Drop IsColorPreview' (#2746) from algernon/forgejo:gitea/cherry-pick/29833/dead-code-removal into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2746
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
Earl Warren 2024-03-23 15:25:08 +00:00
commit b5775f6d6e
2 changed files with 0 additions and 8 deletions

View File

@ -222,7 +222,6 @@ package "code.gitea.io/gitea/modules/markup/markdown"
func IsSummary func IsSummary
func IsTaskCheckBoxListItem func IsTaskCheckBoxListItem
func IsIcon func IsIcon
func IsColorPreview
func RenderRawString func RenderRawString
package "code.gitea.io/gitea/modules/markup/markdown/math" package "code.gitea.io/gitea/modules/markup/markdown/math"

View File

@ -174,10 +174,3 @@ func NewColorPreview(color []byte) *ColorPreview {
Color: color, Color: color,
} }
} }
// IsColorPreview returns true if the given node implements the ColorPreview interface,
// otherwise false.
func IsColorPreview(node ast.Node) bool {
_, ok := node.(*ColorPreview)
return ok
}