shithub: hell

Download patch

ref: 488086fe4bf6f95845f02b6a4154eb42c0196683
parent: 918985cbc5ff46956d83d761abd4df67be67cf68
author: penny <penny@limitedideas.org>
date: Sun Oct 5 22:35:19 EDT 2025

remove dead code

--- a/mastodon.go
+++ b/mastodon.go
@@ -179,12 +179,6 @@
 	return accountstring
 }
 
-// Spaces before prefixes (no space if you're not passing a prefix)
-func (hc *Hellclient) formatReblog(post *mastodon.Status, index string) string {
-	reblogString := fmt.Sprintf(" <%s> Reblogged", post.Account.Username)
-	return hc.formatStatusDetailed(post.Reblog, index, reblogString)
-}
-
 func (hc *Hellclient) formatWithPrefix(post *mastodon.Status, index string, prefix string) string {
 	postString := fmt.Sprintf("%s %s>", prefix, index)
 	return hc.formatStatusDetailed(post, "", postString)
@@ -202,10 +196,6 @@
 func (hc *Hellclient) formatUnbookmark(post *mastodon.Status, index string) string {
 	favString := fmt.Sprintf("Unbookmarked: %s", index)
 	return hc.formatStatusDetailed(post, "", favString)
-}
-
-func (hc *Hellclient) formatStatus(post *mastodon.Status, index string) string {
-	return hc.formatStatusDetailed(post, index, " ")
 }
 
 func (hc *Hellclient) formatStatusDetailed(post *mastodon.Status, index string, prefix string) string {
--- a/references.go
+++ b/references.go
@@ -58,10 +58,6 @@
 	saveCustomStatusRef(ref.postmap, status, ref.ref, ref.prefix)
 }
 
-func saveWorkRef(statusMap map[string]*mastodon.Status, post *mastodon.Status, index string) {
-	saveCustomStatusRef(statusMap, post, index, "?")
-}
-
 func saveCustomStatusRef(statusMap map[string]*mastodon.Status, post *mastodon.Status, index string, prefix string) {
 	index = prefix + index
 	(statusMap)[index] = post
--