diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-05-01 13:35:04 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-05-01 16:25:15 +0200 |
commit | 2ec7cc559846327439ba4c44dec0c3507d0d703e (patch) | |
tree | ca973c76e917e756c532acd2e4ef21cdeabe6841 | |
parent | d7c9738f2a6596de5e603915ae4d370f4b771c04 (diff) |
[bug] remove remanents of IMAP profiling code
- Resolves: #8870
-rw-r--r-- | docs/mail/hacking.rst | 6 | ||||
-rw-r--r-- | src/leap/bitmask/mail/imap/mailbox.py | 5 |
2 files changed, 0 insertions, 11 deletions
diff --git a/docs/mail/hacking.rst b/docs/mail/hacking.rst index 10e3dbcb..2a4e6d32 100644 --- a/docs/mail/hacking.rst +++ b/docs/mail/hacking.rst @@ -17,12 +17,6 @@ capabities:: ``--profiler`` option allows you to select different profilers (default is "hotshot"). -You can also do profiling when using the ``bitmask`` client. Enable the -``LEAP_PROFILE_IMAPCMD`` environment flag to get profiling of certain IMAP -commands:: - - LEAP_PROFILE_IMAPCMD=1 bitmask --debug - Mutt config ------------ diff --git a/src/leap/bitmask/mail/imap/mailbox.py b/src/leap/bitmask/mail/imap/mailbox.py index 3a1e8c10..f74910f9 100644 --- a/src/leap/bitmask/mail/imap/mailbox.py +++ b/src/leap/bitmask/mail/imap/mailbox.py @@ -645,8 +645,6 @@ class IMAPMailbox(object): d = defer.Deferred() reactor.callLater(0, self._do_fetch_flags, messages_asked, uid, d) - if PROFILE_CMD: - do_profile_cmd(d, "FETCH-ALL-FLAGS") return d def _do_fetch_flags(self, messages_asked, uid, d): @@ -889,9 +887,6 @@ class IMAPMailbox(object): uid when the copy succeed. :rtype: Deferred """ - # if PROFILE_CMD: - # do_profile_cmd(d, "COPY") - # A better place for this would be the COPY/APPEND dispatcher # in server.py, but qtreactor hangs when I do that, so this seems # to work fine for now. |