Remove user snatches (should be handled by backend)

This commit is contained in:
Justin Li
2014-08-01 13:25:30 -04:00
parent 24b4437edd
commit 14fd5612af
4 changed files with 0 additions and 23 deletions
-13
View File
@@ -67,19 +67,6 @@ func (c *Conn) IncrementTorrentSnatches(infohash string) error {
return nil
}
func (c *Conn) IncrementUserSnatches(userID string) error {
c.usersM.Lock()
defer c.usersM.Unlock()
u, exists := c.users[userID]
if !exists {
return models.ErrUserDNE
}
u.Snatches++
return nil
}
func (c *Conn) TouchTorrent(infohash string) error {
c.torrentsM.Lock()
defer c.torrentsM.Unlock()