aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-12-18 23:03:41 +0100
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-12-18 23:03:41 +0100
commit1e775353178984af3172d7d2b58a31761596dcae (patch)
tree93eacc58fbed96acb3910647850d1e09ac94aec7 /src
parente75f165bb45be0fd8a56efda4a11564211651cdf (diff)
downloaduGFX-1e775353178984af3172d7d2b58a31761596dcae.tar.gz
uGFX-1e775353178984af3172d7d2b58a31761596dcae.tar.bz2
uGFX-1e775353178984af3172d7d2b58a31761596dcae.zip
Removing obsolete code
Diffstat (limited to 'src')
-rw-r--r--src/gwin/gwin_widget.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gwin/gwin_widget.c b/src/gwin/gwin_widget.c
index 1cc5e609..b5095521 100644
--- a/src/gwin/gwin_widget.c
+++ b/src/gwin/gwin_widget.c
@@ -381,11 +381,6 @@ GHandle _gwidgetCreate(GDisplay *g, GWidgetObject *pgw, const GWidgetInit *pInit
if (!(pgw = (GWidgetObject *)_gwindowCreate(g, &pgw->g, &pInit->g, &vmt->g, GWIN_FLG_WIDGET|GWIN_FLG_ENABLED|GWIN_FLG_SYSENABLED)))
return 0;
- #if GWIN_NEED_COLLECTIONS
- // This window can't be system enabled if the parent is not enabled
- if (pgw->parent && !(pgw->parent->flags & GWIN_FLG_SYSENABLED))
- pgw->g.flags &= ~GWIN_FLG_SYSENABLED;
- #endif
pgw->text = pInit->text ? pInit->text : "";
pgw->fnDraw = pInit->customDraw ? pInit->customDraw : vmt->DefaultDraw;
pgw->fnParam = pInit->customParam;