From 00e72b1d739666a0f6cf741747e8e612e850d6b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 23 Aug 2017 18:34:17 +0200 Subject: [PATCH] Remove unused code Whatever this was, its not used since 4 years see 8f71d9f21955d30cd47fabdf0b95869603887cb9 --- gajim/conversation_textview.py | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/gajim/conversation_textview.py b/gajim/conversation_textview.py index 1b98d2cdd..4b6f9ac3c 100644 --- a/gajim/conversation_textview.py +++ b/gajim/conversation_textview.py @@ -220,8 +220,6 @@ class ConversationTextview(GObject.GObject): id_ = self.tv.connect('button_press_event', self.on_textview_button_press_event) self.handlers[id_] = self.tv - id_ = self.tv.connect('draw', self.on_textview_draw) - self.handlers[id_] = self.tv self.account = account self.cursor_changed = False @@ -520,34 +518,6 @@ class ConversationTextview(GObject.GObject): # appeared) GLib.idle_add(self.scroll_to_end_iter) - def on_textview_draw(self, widget, ctx): - return - #TODO - expalloc = event.area - exp_x0 = expalloc.x - exp_y0 = expalloc.y - exp_x1 = exp_x0 + expalloc.width - exp_y1 = exp_y0 + expalloc.height - - try: - tryfirst = [self.image_cache[(exp_x0, exp_y0)]] - except KeyError: - tryfirst = [] - - for image in tryfirst + self.images: - imgalloc = image.allocation - img_x0 = imgalloc.x - img_y0 = imgalloc.y - img_x1 = img_x0 + imgalloc.width - img_y1 = img_y0 + imgalloc.height - - if img_x0 <= exp_x0 and img_y0 <= exp_y0 and \ - exp_x1 <= img_x1 and exp_y1 <= img_y1: - self.image_cache[(img_x0, img_y0)] = image - widget.propagate_expose(image, event) - return True - return False - def clear(self, tv = None): """ Clear text in the textview