From 2ec7cc559846327439ba4c44dec0c3507d0d703e Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Mon, 1 May 2017 13:35:04 +0200 Subject: [bug] remove remanents of IMAP profiling code - Resolves: #8870 --- docs/mail/hacking.rst | 6 ------ src/leap/bitmask/mail/imap/mailbox.py | 5 ----- 2 files changed, 11 deletions(-) diff --git a/docs/mail/hacking.rst b/docs/mail/hacking.rst index 10e3dbc..2a4e6d3 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 3a1e8c1..f74910f 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. -- cgit v1.2.3