From f3dbecaaea16fe8956af2bbd29472243f0496995 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 29 Feb 2020 14:40:52 +0100 Subject: remove the dirInfoUpdateRequest functionality The notmuch worker followed suit in handling the dirInfo submission manually. That removes the last user so we might as well remove the functionality. --- worker/imap/worker.go | 2 -- worker/types/messages.go | 7 ------- 2 files changed, 9 deletions(-) (limited to 'worker') diff --git a/worker/imap/worker.go b/worker/imap/worker.go index 1037f814..ddd95b6c 100644 --- a/worker/imap/worker.go +++ b/worker/imap/worker.go @@ -181,8 +181,6 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error { w.handleAppendMessage(msg) case *types.SearchDirectory: w.handleSearchDirectory(msg) - case *types.DirectoryInfoUpdateRequest: - // not implemented default: reterr = errUnsupported } diff --git a/worker/types/messages.go b/worker/types/messages.go index f43ab0ad..c7d5077a 100644 --- a/worker/types/messages.go +++ b/worker/types/messages.go @@ -149,13 +149,6 @@ type DirectoryInfo struct { Info *models.DirectoryInfo } -// Sent whenever we assume that a directory content changed -// workers are requested to update the DirectoryInfo to display the unread count -type DirectoryInfoUpdateRequest struct { - Message - Name string -} - type DirectoryContents struct { Message Uids []uint32 -- cgit