summaryrefslogtreecommitdiffci
path: root/internal/router/client-cache.go
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'internal/router/client-cache.go')
-rw-r--r--internal/router/client-cache.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/router/client-cache.go b/internal/router/client-cache.go
index 7d276b1..3104a66 100644
--- a/internal/router/client-cache.go
+++ b/internal/router/client-cache.go
@@ -58,13 +58,6 @@ func (c *ClientCache) GetLikeStatus(id string, page string) bool {
return ok
}
-func (c *ClientCache) GetLikeCount(page string) int {
- if userSet, ok := c.likePageMap[page]; ok {
- return len(userSet)
- }
- return 0
-}
-
func (c *ClientCache) LikeOn(id string, page string) (alreadyLiked bool) {
if _, ok := c.mutexLikeMap[id]; !ok {
c.mutexLikeMap[id] = &sync.Mutex{}