summaryrefslogtreecommitdiffstats
path: root/libmail/expungelist.C
diff options
context:
space:
mode:
Diffstat (limited to 'libmail/expungelist.C')
-rw-r--r--libmail/expungelist.C39
1 files changed, 0 insertions, 39 deletions
diff --git a/libmail/expungelist.C b/libmail/expungelist.C
deleted file mode 100644
index 4d46206..0000000
--- a/libmail/expungelist.C
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
-** Copyright 2003, Double Precision Inc.
-**
-** See COPYING for distribution information.
-*/
-
-#include "expungelist.H"
-
-mail::expungeList::expungeList()
-{
-}
-
-mail::expungeList::~expungeList()
-{
-}
-
-void mail::expungeList::operator<<(size_t n) // Iterate in REVERSE ORDER
-{
- if (!list.empty() && n + 1 == list.begin()->first)
- --list.begin()->first;
- else
- list.insert(list.begin(), std::make_pair(n, n));
-}
-
-void mail::expungeList::operator>>(mail::callback::folder *cb)
-{
- std::vector< std::pair<size_t, size_t> > v;
-
- v.reserve(list.size());
-
- while (!list.empty())
- {
- v.push_back(*list.begin());
- list.pop_front();
- }
-
- if (cb && v.size() > 0)
- cb->messagesRemoved(v);
-}