[dia] Remove nowadays unused display hash table (display_ht)
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Remove nowadays unused display hash table (display_ht)
- Date: Wed, 20 Oct 2010 19:28:13 +0000 (UTC)
commit e85adef977c6b343862d3b21e0e887bb1cf75f0d
Author: Hans Breuer <hans breuer org>
Date: Sun Oct 17 19:08:12 2010 +0200
Remove nowadays unused display hash table (display_ht)
app/display.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/app/display.c b/app/display.c
index c39d42d..d85f0aa 100644
--- a/app/display.c
+++ b/app/display.c
@@ -48,7 +48,6 @@
#include "diatransform.h"
#include "recent_files.h"
-static GHashTable *display_ht = NULL;
static GdkCursor *current_cursor = NULL;
GdkCursor *default_cursor = NULL;
@@ -61,8 +60,6 @@ typedef struct _IRectangle {
int left,right;
} IRectangle;
-static guint display_hash(DDisplay *ddisp);
-
static void
update_zoom_status(DDisplay *ddisp)
{
@@ -198,14 +195,8 @@ initialize_display_widgets(DDisplay *ddisp)
ddisplay_update_scrollbars(ddisp);
ddisplay_add_update_all(ddisp);
- if (!display_ht)
- display_ht = g_hash_table_new ((GHashFunc) display_hash, NULL);
-
if (!app_is_embedded())
ddisplay_set_cursor(ddisp, current_cursor);
-
- g_hash_table_insert (display_ht, ddisp->shell, ddisp);
- g_hash_table_insert (display_ht, ddisp->canvas, ddisp);
if (!input_methods_done) {
im_menu_item = menus_get_action ("InputMethods");
@@ -336,12 +327,6 @@ new_display(Diagram *dia)
return ddisp; /* set the user data */
}
-static guint
-display_hash(DDisplay *ddisp)
-{
- return (gulong) ddisp;
-}
-
void
ddisplay_transform_coords_double(DDisplay *ddisp,
coord x, coord y,
@@ -1386,9 +1371,6 @@ ddisplay_really_destroy(DDisplay *ddisp)
g_object_unref (ddisp->renderer);
ddisp->renderer = NULL;
-
- g_hash_table_remove(display_ht, ddisp->shell);
- g_hash_table_remove(display_ht, ddisp->canvas);
/* Free update_areas list: */
ddisplay_free_update_areas(ddisp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]