aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-15 23:16:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-16 10:50:05 +0800
commitcae22334fa6bc395ccc421b09e0af94c89297c41 (patch)
tree84881f467c0448db044d8bb3533e044a7152bb2b /widgets
parentd37784ed3db20fd74ea4b8d9fdfe58518370cea2 (diff)
downloadgsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.gz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.bz2
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.lz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.xz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.zst
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.zip
Remove dead assignments found by clang.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-attachment-button.c3
-rw-r--r--widgets/misc/e-attachment-handler-image.c5
-rw-r--r--widgets/misc/e-attachment-store.c3
-rw-r--r--widgets/misc/e-calendar-item.c13
-rw-r--r--widgets/misc/e-image-chooser.c2
-rw-r--r--widgets/misc/e-import-assistant.c1
-rw-r--r--widgets/misc/e-map.c3
-rw-r--r--widgets/misc/e-pilot-settings.c6
-rw-r--r--widgets/misc/e-web-view.c2
-rw-r--r--widgets/misc/ea-calendar-item.c2
-rw-r--r--widgets/table/e-cell-date-edit.c1
-rw-r--r--widgets/table/e-cell-pixbuf.c6
-rw-r--r--widgets/table/e-cell-text.c13
-rw-r--r--widgets/table/e-cell-toggle.c30
-rw-r--r--widgets/table/e-table-group-container.c9
-rw-r--r--widgets/table/e-table-group.c1
-rw-r--r--widgets/table/e-table-header-item.c2
-rw-r--r--widgets/table/e-table-header-utils.c2
-rw-r--r--widgets/table/e-table-header.c2
-rw-r--r--widgets/table/e-table-item.c8
-rw-r--r--widgets/table/e-tree.c2
-rw-r--r--widgets/text/e-reflow.c2
22 files changed, 17 insertions, 101 deletions
diff --git a/widgets/misc/e-attachment-button.c b/widgets/misc/e-attachment-button.c
index 192344068b..dac9b28c75 100644
--- a/widgets/misc/e-attachment-button.c
+++ b/widgets/misc/e-attachment-button.c
@@ -208,13 +208,10 @@ attachment_button_update_pixbufs (EAttachmentButton *button)
{
GtkCellLayout *cell_layout;
GtkCellRenderer *renderer;
- GtkIconTheme *icon_theme;
GdkPixbuf *pixbuf_expander_open;
GdkPixbuf *pixbuf_expander_closed;
GList *list;
- icon_theme = gtk_icon_theme_get_default ();
-
/* Grab the first cell renderer. */
cell_layout = GTK_CELL_LAYOUT (button->priv->cell_view);
list = gtk_cell_layout_get_cells (cell_layout);
diff --git a/widgets/misc/e-attachment-handler-image.c b/widgets/misc/e-attachment-handler-image.c
index 277a51be7f..6429eb6b8e 100644
--- a/widgets/misc/e-attachment-handler-image.c
+++ b/widgets/misc/e-attachment-handler-image.c
@@ -154,7 +154,6 @@ static void
attachment_handler_image_update_actions_cb (EAttachmentView *view,
EAttachmentHandler *handler)
{
- EAttachmentHandlerImagePrivate *priv;
EAttachment *attachment;
GFileInfo *file_info;
GtkActionGroup *action_group;
@@ -163,8 +162,6 @@ attachment_handler_image_update_actions_cb (EAttachmentView *view,
GList *selected;
gboolean visible = FALSE;
- priv = E_ATTACHMENT_HANDLER_IMAGE_GET_PRIVATE (handler);
-
selected = e_attachment_view_get_selected_attachments (view);
if (g_list_length (selected) != 1)
@@ -199,7 +196,6 @@ exit:
static void
attachment_handler_image_constructed (GObject *object)
{
- EAttachmentHandlerImagePrivate *priv;
EAttachmentHandler *handler;
EAttachmentView *view;
GtkActionGroup *action_group;
@@ -207,7 +203,6 @@ attachment_handler_image_constructed (GObject *object)
GError *error = NULL;
handler = E_ATTACHMENT_HANDLER (object);
- priv = E_ATTACHMENT_HANDLER_IMAGE_GET_PRIVATE (object);
/* Chain up to parent's constructed() method. */
G_OBJECT_CLASS (parent_class)->constructed (object);
diff --git a/widgets/misc/e-attachment-store.c b/widgets/misc/e-attachment-store.c
index 6fd71f0c57..217d03fd83 100644
--- a/widgets/misc/e-attachment-store.c
+++ b/widgets/misc/e-attachment-store.c
@@ -281,7 +281,6 @@ e_attachment_store_add_attachment (EAttachmentStore *store,
GtkTreeModel *model;
GtkTreePath *path;
GtkTreeIter iter;
- GFile *file;
g_return_if_fail (E_IS_ATTACHMENT_STORE (store));
g_return_if_fail (E_IS_ATTACHMENT (attachment));
@@ -301,8 +300,6 @@ e_attachment_store_add_attachment (EAttachmentStore *store,
store->priv->attachment_index,
g_object_ref (attachment), reference);
- file = e_attachment_get_file (attachment);
-
/* This lets the attachment tell us when to update. */
e_attachment_set_reference (attachment, reference);
diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c
index 6f54327033..9829d81279 100644
--- a/widgets/misc/e-calendar-item.c
+++ b/widgets/misc/e-calendar-item.c
@@ -1023,7 +1023,6 @@ e_calendar_item_draw (GnomeCanvasItem *canvas_item,
{
ECalendarItem *calitem;
GtkStyle *style;
- GdkGC *base_gc, *bg_gc;
gint char_height, row, col, row_y, bar_height, col_x;
gint xthickness, ythickness;
PangoFontDescription *font_desc;
@@ -1052,8 +1051,6 @@ e_calendar_item_draw (GnomeCanvasItem *canvas_item,
PANGO_PIXELS (pango_font_metrics_get_descent (font_metrics));
xthickness = style->xthickness;
ythickness = style->ythickness;
- base_gc = style->base_gc[GTK_STATE_NORMAL];
- bg_gc = style->bg_gc[GTK_STATE_NORMAL];
base = style->base[GTK_STATE_NORMAL];
bg = style->bg[GTK_STATE_NORMAL];
@@ -1164,7 +1161,6 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
PangoFontMetrics *font_metrics;
PangoLayout *layout;
cairo_t *cr;
- GdkColor fg;
#if 0
g_print ("In e_calendar_item_draw_month: %i,%i %ix%i row:%i col:%i\n",
@@ -1191,8 +1187,6 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
ythickness = style->ythickness;
fg_gc = style->fg_gc[GTK_STATE_NORMAL];
- fg = style->fg[GTK_STATE_NORMAL];
-
pango_font_metrics_unref (font_metrics);
/* Calculate the top-left position of the entire month display. */
@@ -1396,7 +1390,7 @@ e_calendar_item_draw_day_numbers (ECalendarItem *calitem,
GnomeCanvasItem *item;
GtkWidget *widget;
GtkStyle *style;
- PangoFontDescription *font_desc, *wkfont_desc;
+ PangoFontDescription *font_desc;
GdkGC *fg_gc;
GdkColor *bg_color, *fg_color, *box_color;
struct tm today_tm;
@@ -1427,9 +1421,6 @@ e_calendar_item_draw_day_numbers (ECalendarItem *calitem,
font_desc = calitem->font_desc;
if (!font_desc)
font_desc = style->font_desc;
- wkfont_desc = calitem->week_number_font_desc;
- if (!wkfont_desc)
- wkfont_desc = font_desc;
fg_gc = style->fg_gc[GTK_STATE_NORMAL];
pango_context = gtk_widget_get_pango_context (widget);
@@ -1732,8 +1723,6 @@ e_calendar_item_get_week_number (ECalendarItem *calitem,
g_date_add_days (&date, 7 - weekday);
else
g_date_subtract_days (&date, weekday);
-
- weekday = g_date_get_weekday (&date) - 1;
}
/* Calculate the day of the year, from 0 to 365. */
diff --git a/widgets/misc/e-image-chooser.c b/widgets/misc/e-image-chooser.c
index 4ea76099aa..5defe2090d 100644
--- a/widgets/misc/e-image-chooser.c
+++ b/widgets/misc/e-image-chooser.c
@@ -401,7 +401,7 @@ image_chooser_finalize (GObject *object)
static void
e_image_chooser_class_init (EImageChooserClass *class)
{
- GObjectClass *object_class = G_OBJECT_CLASS (class);
+ GObjectClass *object_class;
parent_class = g_type_class_peek_parent (class);
g_type_class_add_private (class, sizeof (EImageChooserPrivate));
diff --git a/widgets/misc/e-import-assistant.c b/widgets/misc/e-import-assistant.c
index bf2396efb2..77108c01a5 100644
--- a/widgets/misc/e-import-assistant.c
+++ b/widgets/misc/e-import-assistant.c
@@ -168,7 +168,6 @@ filename_changed (GtkWidget *widget,
first = eii;
}
gtk_list_store_set (GTK_LIST_STORE (model), &iter, 1, TRUE, -1);
- fileok = TRUE;
} else {
if (page->importer == eii)
page->importer = NULL;
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index 3169c97c78..e6a223a121 100644
--- a/widgets/misc/e-map.c
+++ b/widgets/misc/e-map.c
@@ -535,9 +535,6 @@ e_map_key_press (GtkWidget *widget, GdkEventKey *event)
view = E_MAP (widget);
priv = view->priv;
- do_scroll = FALSE;
- xofs = yofs = 0;
-
switch (event->keyval)
{
case GDK_Up:
diff --git a/widgets/misc/e-pilot-settings.c b/widgets/misc/e-pilot-settings.c
index 0327ca84ff..e2b90897a0 100644
--- a/widgets/misc/e-pilot-settings.c
+++ b/widgets/misc/e-pilot-settings.c
@@ -67,10 +67,6 @@ e_pilot_settings_get_type (void)
static void
class_init (EPilotSettingsClass *klass)
{
- GObjectClass *object_class;
-
- object_class = G_OBJECT_CLASS (klass);
-
parent_class = g_type_class_ref (GTK_TYPE_TABLE);
}
@@ -129,10 +125,8 @@ GtkWidget *
e_pilot_settings_new (ESourceList *source_list)
{
EPilotSettings *ps;
- EPilotSettingsPrivate *priv;
ps = g_object_new (E_TYPE_PILOT_SETTINGS, NULL);
- priv = ps->priv;
build_ui (ps, source_list);
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index 0a0e3143ef..31516bf04d 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -189,11 +189,9 @@ web_view_request_stream_read_cb (GInputStream *input_stream,
GAsyncResult *result,
EWebViewRequest *request)
{
- GtkHTML *html;
gssize bytes_read;
GError *error = NULL;
- html = GTK_HTML (request->web_view);
bytes_read = g_input_stream_read_finish (input_stream, result, &error);
if (web_view_request_check_for_error (request, error))
diff --git a/widgets/misc/ea-calendar-item.c b/widgets/misc/ea-calendar-item.c
index 17188ed66c..0946775e2d 100644
--- a/widgets/misc/ea-calendar-item.c
+++ b/widgets/misc/ea-calendar-item.c
@@ -1124,7 +1124,6 @@ ea_calendar_item_get_column_label (EaCalendarItem *ea_calitem, gint column,
{
AtkGObjectAccessible *atk_gobj;
GObject *g_obj;
- ECalendarItem *calitem;
const gchar *abbr_name;
g_return_val_if_fail (ea_calitem, FALSE);
@@ -1135,7 +1134,6 @@ ea_calendar_item_get_column_label (EaCalendarItem *ea_calitem, gint column,
return FALSE;
/* Columns are 0 = Monday ... 6 = Sunday */
- calitem = E_CALENDAR_ITEM (g_obj);
abbr_name = e_get_weekday_name (column + 1, TRUE);
g_strlcpy (buffer, abbr_name, buffer_size);
diff --git a/widgets/table/e-cell-date-edit.c b/widgets/table/e-cell-date-edit.c
index 88b077595e..39443c3960 100644
--- a/widgets/table/e-cell-date-edit.c
+++ b/widgets/table/e-cell-date-edit.c
@@ -679,7 +679,6 @@ e_cell_date_edit_get_popup_pos (ECellDateEdit *ecde,
if (*y - row_height > avail_height) {
/* We don't, so we show the popup above the cell
instead of below it. */
- avail_height = *y - row_height;
*y -= (popup_requisition.height + row_height);
if (*y < 0)
*y = 0;
diff --git a/widgets/table/e-cell-pixbuf.c b/widgets/table/e-cell-pixbuf.c
index 666f556ec3..3f7ee1d378 100644
--- a/widgets/table/e-cell-pixbuf.c
+++ b/widgets/table/e-cell-pixbuf.c
@@ -114,7 +114,7 @@ pixbuf_draw (ECellView *ecell_view, GdkDrawable *drawable,
gint x1, gint y1, gint x2, gint y2)
{
GdkPixbuf *cell_pixbuf;
- gint real_x, real_y, real_w, real_h;
+ gint real_x, real_y;
gint pix_w, pix_h;
cairo_t *cr;
@@ -136,19 +136,15 @@ pixbuf_draw (ECellView *ecell_view, GdkDrawable *drawable,
if (x2 - x1 > pix_w) {
gint diff = (x2 - x1) - pix_w;
real_x = x1 + diff/2;
- real_w = pix_w;
} else {
real_x = x1;
- real_w = x2 - x1;
}
if (y2 - y1 > pix_h) {
gint diff = (y2 - y1) - pix_h;
real_y = y1 + diff/2;
- real_h = pix_h;
} else {
real_y = y1;
- real_h = y2 - y1;
}
cr = gdk_cairo_create (drawable);
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 24f7dc5cd8..852f8ec980 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -1299,17 +1299,6 @@ ect_free_state (ECellView *ecell_view, gint model_col, gint view_col, gint row,
g_free (save_state);
}
-#define FONT_NAME "Sans Regular"
-
-static PangoFontDescription *
-get_font_description_for_size (double h)
-{
- PangoFontDescription *font_des = pango_font_description_new ();
- pango_font_description_set_family (font_des, FONT_NAME);
- pango_font_description_set_size (font_des, h * PANGO_SCALE);
- return font_des;
-}
-
static void
get_font_size (PangoLayout *layout, PangoFontDescription *font, const gchar *text,
double *width, double *height)
@@ -1334,7 +1323,7 @@ ect_print (ECellView *ecell_view, GtkPrintContext *context,
gint model_col, gint view_col, gint row,
double width, double height)
{
- PangoFontDescription *font_des = get_font_description_for_size (12);
+ PangoFontDescription *font_des;
PangoLayout *layout;
PangoContext *pango_context;
PangoFontMetrics *font_metrics;
diff --git a/widgets/table/e-cell-toggle.c b/widgets/table/e-cell-toggle.c
index 4903602763..a03eed037e 100644
--- a/widgets/table/e-cell-toggle.c
+++ b/widgets/table/e-cell-toggle.c
@@ -199,16 +199,13 @@ cell_toggle_draw (ECellView *ecell_view,
gint y2)
{
ECellTogglePrivate *priv;
- ECellToggleView *toggle_view;
GdkPixbuf *image;
- gint x, y, width, height;
- gint cache_seq;
+ gint x, y;
cairo_t *cr;
const gint value = GPOINTER_TO_INT (
e_table_model_value_at (ecell_view->e_table_model, model_col, row));
- toggle_view = (ECellToggleView *) ecell_view;
priv = E_CELL_TOGGLE_GET_PRIVATE (ecell_view->ecell);
if (value < 0 || value >= priv->pixbufs->len) {
@@ -217,34 +214,17 @@ cell_toggle_draw (ECellView *ecell_view,
return;
}
- if (flags & E_CELL_SELECTED) {
- if (GTK_WIDGET_HAS_FOCUS (toggle_view->canvas))
- cache_seq = 0;
- else
- cache_seq = 1;
- } else
- cache_seq = 2;
-
- if (E_TABLE_ITEM (ecell_view->e_table_item_view)->alternating_row_colors && (row % 2) == 0)
- cache_seq += 3;
-
image = g_ptr_array_index (priv->pixbufs, value);
- if ((x2 - x1) < gdk_pixbuf_get_width (image)) {
+ if ((x2 - x1) < gdk_pixbuf_get_width (image))
x = x1;
- width = x2 - x1;
- } else {
+ else
x = x1 + ((x2 - x1) - gdk_pixbuf_get_width (image)) / 2;
- width = gdk_pixbuf_get_width (image);
- }
- if ((y2 - y1) < gdk_pixbuf_get_height (image)) {
+ if ((y2 - y1) < gdk_pixbuf_get_height (image))
y = y1;
- height = y2 - y1;
- } else {
+ else
y = y1 + ((y2 - y1) - gdk_pixbuf_get_height (image)) / 2;
- height = gdk_pixbuf_get_height (image);
- }
cr = gdk_cairo_create (drawable);
cairo_save (cr);
diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c
index 43513ddc89..2552cb6789 100644
--- a/widgets/table/e-table-group-container.c
+++ b/widgets/table/e-table-group-container.c
@@ -609,7 +609,7 @@ static void
etgc_increment (ETableGroup *etg, gint position, gint amount)
{
ETableGroupContainer *etgc = E_TABLE_GROUP_CONTAINER(etg);
- GList *list = etgc->children;
+ GList *list;
for (list = etgc->children; list; list = g_list_next (list))
e_table_group_increment (((ETableGroupContainerChildNode *)list->data)->child,
@@ -620,7 +620,7 @@ static void
etgc_decrement (ETableGroup *etg, gint position, gint amount)
{
ETableGroupContainer *etgc = E_TABLE_GROUP_CONTAINER(etg);
- GList *list = etgc->children;
+ GList *list;
for (list = etgc->children; list; list = g_list_next (list))
e_table_group_decrement (((ETableGroupContainerChildNode *)list->data)->child,
@@ -1116,7 +1116,7 @@ e_table_group_apply_to_leafs (ETableGroup *etg, ETableGroupLeafFn fn, gpointer c
{
if (E_IS_TABLE_GROUP_CONTAINER (etg)) {
ETableGroupContainer *etgc = E_TABLE_GROUP_CONTAINER (etg);
- GList *list = etgc->children;
+ GList *list;
/* Protect from unrefs in the callback functions */
g_object_ref (etg);
@@ -1168,7 +1168,7 @@ e_table_group_container_print_page (EPrintable *ep,
ETGCPrintContext *groupcontext)
{
cairo_t *cr;
- gdouble yd = height;
+ gdouble yd;
gdouble child_height;
ETableGroupContainerChildNode *child_node;
GList *child;
@@ -1180,7 +1180,6 @@ e_table_group_container_print_page (EPrintable *ep,
child_printable = groupcontext->child_printable;
child = groupcontext->child;
yd = 6.5 * 72;
- height = 5 * 72;
if (child_printable) {
if (child)
diff --git a/widgets/table/e-table-group.c b/widgets/table/e-table-group.c
index ebf861657c..7193ab87c6 100644
--- a/widgets/table/e-table-group.c
+++ b/widgets/table/e-table-group.c
@@ -601,6 +601,7 @@ etg_event (GnomeCanvasItem *item, GdkEvent *event)
case GDK_FOCUS_CHANGE:
etg->has_focus = event->focus_change.in;
return_val = FALSE;
+ break;
default:
return_val = FALSE;
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 067ce72c4b..0ea785bc86 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -1516,7 +1516,6 @@ static void
ethi_header_context_menu (ETableHeaderItem *ethi, GdkEventButton *event)
{
EthiHeaderInfo *info = g_new (EthiHeaderInfo, 1);
- ETableCol *col;
GtkMenu *popup;
gint ncol, sort_count, sort_col;
GtkWidget *menu_item, *sub_menu;
@@ -1526,7 +1525,6 @@ ethi_header_context_menu (ETableHeaderItem *ethi, GdkEventButton *event)
info->ethi = ethi;
info->col = ethi_find_col_by_x (ethi, event->x);
- col = e_table_header_get_column (ethi->eth, info->col);
popup = e_popup_menu_create_with_domain (ethi_context_menu,
1 +
diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c
index c6e694da2e..f2a3c1a826 100644
--- a/widgets/table/e-table-header-utils.c
+++ b/widgets/table/e-table-header-utils.c
@@ -472,8 +472,6 @@ e_table_header_draw_button (GdkDrawable *drawable, ETableCol *ecol,
inner_x + inner_width - arrow_width,
inner_y + (inner_height - arrow_height) / 2,
arrow_width, arrow_height);
-
- inner_width -= arrow_width + HEADER_PADDING;
break;
}
diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c
index 1016acf5c0..8d382f5a92 100644
--- a/widgets/table/e-table-header.c
+++ b/widgets/table/e-table-header.c
@@ -790,8 +790,6 @@ eth_set_size (ETableHeader *eth, gint idx, gint size)
return;
}
- /* Remove from total_extra the amount used for this column. */
- total_extra -= size - (eth->columns[idx]->min_width + eth->width_extras);
for (i = idx + 1; i < eth->col_count; i++) {
if (eth->columns[idx]->resizable) {
/* old_expansion != 0 by (2) */
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 8b94ad8833..006c5c02cf 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -1752,8 +1752,8 @@ eti_draw (GnomeCanvasItem *item, GdkDrawable *drawable, gint x, gint y, gint wid
* First column to draw, last column to draw
*/
first_col = -1;
- last_col = x_offset = 0;
- x1 = x2 = floor (eti_base.x);
+ x_offset = 0;
+ x1 = floor (eti_base.x);
for (col = 0; col < cols; col++, x1 = x2) {
ETableCol *ecol = e_table_header_get_column (eti->header, col);
@@ -3443,10 +3443,8 @@ e_table_item_print_page (EPrintable *ep,
gp_draw_rect(context, xd, height, 1, yd - height);
}
- if (next_page) {
+ if (next_page)
cairo_show_page (cr);
- next_page = 0;
- }
g_free (widths);
}
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index ba50be0625..d612fc93bc 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -506,8 +506,6 @@ et_search_search (ETableSearch *search, gchar *string, ETableSearchFlags flags,
e_tree_table_adapter_show_node (et->priv->etta, found);
model_row = e_tree_table_adapter_row_of_node (et->priv->etta, found);
- cursor = found;
-
e_selection_model_select_as_key_press(E_SELECTION_MODEL (et->priv->selection), model_row, col->col_idx, GDK_CONTROL_MASK);
return TRUE;
} else if (cursor && !(flags & E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST)) {
diff --git a/widgets/text/e-reflow.c b/widgets/text/e-reflow.c
index 705678bbf8..85521aa02b 100644
--- a/widgets/text/e-reflow.c
+++ b/widgets/text/e-reflow.c
@@ -1114,7 +1114,6 @@ static void e_reflow_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
GNOME_CANVAS_ITEM_CLASS(e_reflow_parent_class)->draw (item, drawable, x, y, width, height);
column_width = reflow->column_width;
running_width = E_REFLOW_BORDER_WIDTH + column_width + E_REFLOW_BORDER_WIDTH;
- x_rect = running_width;
y_rect = E_REFLOW_BORDER_WIDTH;
width_rect = E_REFLOW_DIVIDER_WIDTH;
height_rect = reflow->height - (E_REFLOW_BORDER_WIDTH * 2);
@@ -1150,7 +1149,6 @@ static void e_reflow_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
running_width -= start_line * (column_width + E_REFLOW_FULL_GUTTER);
i += start_line * (column_width + E_REFLOW_FULL_GUTTER);
running_width += E_REFLOW_BORDER_WIDTH + column_width + E_REFLOW_BORDER_WIDTH;
- x_rect = running_width;
y_rect = E_REFLOW_BORDER_WIDTH;
width_rect = E_REFLOW_DIVIDER_WIDTH;
height_rect = reflow->height - (E_REFLOW_BORDER_WIDTH * 2);