[gnumeric] StyleBorder: kill unused field.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] StyleBorder: kill unused field.
- Date: Wed, 28 Jul 2010 18:57:35 +0000 (UTC)
commit 3ec91a4ea178e83c532b328298e375ceff2fee38
Author: Morten Welinder <terra gnome org>
Date: Wed Jul 28 14:57:17 2010 -0400
StyleBorder: kill unused field.
ChangeLog | 5 +++++
NEWS | 1 +
src/style-border.c | 6 ------
src/style-border.h | 1 -
4 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f739ebc..a509b51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-28 Morten Welinder <terra gnome org>
+
+ * src/style-border.h (struct _GnmBorder): Eliminate unused
+ gc_screen.
+
2010-07-28 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/mstyle.c (gnm_style_get_pango_attrs): use
diff --git a/NEWS b/NEWS
index 2e6890e..a11c492 100644
--- a/NEWS
+++ b/NEWS
@@ -72,6 +72,7 @@ Morten:
* Fix mistakes pointed out by sparse.
* Fix win32 versioning problem. [#624171]
* Improve function doc checks.
+ * Eliminate parts of GdkGC usage.
--------------------------------------------------------------------------
Gnumeric 1.10.7
diff --git a/src/style-border.c b/src/style-border.c
index 58a1e06..cbfab47 100644
--- a/src/style-border.c
+++ b/src/style-border.c
@@ -238,7 +238,6 @@ gnm_style_border_fetch (GnmStyleBorderType line_type,
g_hash_table_insert (border_hash, border, border);
border->ref_count = 1;
border->gc = NULL;
- border->gc_screen = NULL;
border->width = gnm_style_border_get_width (line_type);
if (border->line_type == GNM_STYLE_BORDER_DOUBLE) {
border->begin_margin = 1;
@@ -328,11 +327,6 @@ gnm_style_border_unref (GnmBorder *border)
border->gc = NULL;
}
- if (border->gc_screen) {
- g_object_unref (G_OBJECT (border->gc_screen));
- border->gc_screen = NULL;
- }
-
g_free (border);
}
diff --git a/src/style-border.h b/src/style-border.h
index bc51dcb..b8649d7 100644
--- a/src/style-border.h
+++ b/src/style-border.h
@@ -62,7 +62,6 @@ struct _GnmBorder {
/* Private */
GdkGC *gc;
- GdkScreen *gc_screen;
gint ref_count;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]