From 692152ac2bfc73e6f598b4808e0f33cd43c130fe Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 27 Sep 2000 14:33:20 +0000 Subject: Supression de code mort. --- generic/Text.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'generic') diff --git a/generic/Text.c b/generic/Text.c index 3bb3a02..0db7618 100644 --- a/generic/Text.c +++ b/generic/Text.c @@ -82,7 +82,6 @@ typedef struct _TextItemStruct { ZnAnchor anchor; ZnAnchor connection_anchor; ZnColor color; - ZnColor fill_color; char *text; Pixmap fill_pattern; ZnFont font; @@ -119,8 +118,6 @@ static ZnAttrConfig text_attrs[] = { ZN_COORDS_FLAG|ZN_ITEM_FLAG, False }, { ZN_CONFIG_ANCHOR, "-connectionanchor", NULL, Tk_Offset(TextItemStruct, connection_anchor), 0, ZN_COORDS_FLAG, False }, - { ZN_CONFIG_COLOR, "-fillcolor", NULL, - Tk_Offset(TextItemStruct, fill_color), 0, ZN_DRAW_FLAG, False }, { ZN_CONFIG_PATTERN, "-fillpattern", NULL, Tk_Offset(TextItemStruct, fill_pattern), 0, ZN_DRAW_FLAG, False }, { ZN_CONFIG_FONT, "-font", NULL, @@ -188,7 +185,6 @@ Init(Item item, text->anchor = ZnAnchorNW; text->connection_anchor = ZnAnchorSW; text->color = ZnGetColorByValue(wi->win, wi->fore_color); - text->fill_color = ZnGetColorByValue(wi->win, wi->back_color); text->alignment = ZnJustifyLeft; text->font = Tk_GetFont(wi->interp, wi->win, Tk_NameOfFont(wi->font)); text->width = 0; @@ -226,7 +222,6 @@ Clone(Item item) Tk_NameOfBitmap(wi->dpy, text->fill_pattern)); } text->color = ZnGetColorByValue(wi->win, text->color); - text->fill_color = ZnGetColorByValue(wi->win, text->fill_color); text->font = Tk_GetFont(wi->interp, wi->win, Tk_NameOfFont(text->font)); if (text->text_info) { @@ -263,7 +258,6 @@ Destroy(Item item) text->fill_pattern = ZnUnspecifiedPattern; } ZnFreeColor(text->color); - ZnFreeColor(text->fill_color); Tk_FreeFont(text->font); if (text->text_info) { -- cgit v1.1