From 740bd44c5a49b2f9431b1ba4d88238e999d4cb4e Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 13 Mar 2012 13:09:18 -0700 Subject: ui/crumbs: remove unused return value from append_toolbar_button No caller of the method uses the returned toolbar variable (Bitbake rev: 77ed4bb3468d5d256f08329fd307df5a219ae242) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobpages.py | 2 +- bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 6 +++--- bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitbake/lib/bb/ui/crumbs/hobpages.py b/bitbake/lib/bb/ui/crumbs/hobpages.py index 63ee3dd835..81edaca682 100755 --- a/bitbake/lib/bb/ui/crumbs/hobpages.py +++ b/bitbake/lib/bb/ui/crumbs/hobpages.py @@ -84,4 +84,4 @@ class HobPage (gtk.VBox): button = toolbar.append_element(gtk.TOOLBAR_CHILD_RADIOBUTTON, None, buttonname, tip_text, "Private text", icon, cb, None) - return toolbar, button + return button diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index c8f7a56c49..b0c5daae4b 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py @@ -45,19 +45,19 @@ class ImageConfigurationPage (HobPage): self.toolbar.set_orientation(gtk.ORIENTATION_HORIZONTAL) self.toolbar.set_style(gtk.TOOLBAR_BOTH) - _, template_button = self.append_toolbar_button(self.toolbar, + template_button = self.append_toolbar_button(self.toolbar, "Template", hic.ICON_TEMPLATES_DISPLAY_FILE, hic.ICON_TEMPLATES_HOVER_FILE, "Load a hob building template saved before", self.template_button_clicked_cb) - _, my_images_button = self.append_toolbar_button(self.toolbar, + my_images_button = self.append_toolbar_button(self.toolbar, "My images", hic.ICON_IMAGES_DISPLAY_FILE, hic.ICON_IMAGES_HOVER_FILE, "Open images built out previously for running or deployment", self.my_images_button_clicked_cb) - _, settings_button = self.append_toolbar_button(self.toolbar, + settings_button = self.append_toolbar_button(self.toolbar, "Settings", hic.ICON_SETTINGS_DISPLAY_FILE, hic.ICON_SETTINGS_HOVER_FILE, diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 30c25aa5d9..b7663d8443 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py @@ -122,7 +122,7 @@ class ImageDetailsPage (HobPage): self.toolbar.set_orientation(gtk.ORIENTATION_HORIZONTAL) self.toolbar.set_style(gtk.TOOLBAR_BOTH) - _, my_images_button = self.append_toolbar_button(self.toolbar, + my_images_button = self.append_toolbar_button(self.toolbar, "My images", hic.ICON_IMAGES_DISPLAY_FILE, hic.ICON_IMAGES_HOVER_FILE, -- cgit v1.2.3-54-g00ecf