From d44f966fc3d599772af42d0e0cc83f8a0fd49513 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 2 Sep 2015 09:39:21 -0400 Subject: [PATCH] Removed the obsolete HasTabStops() from the Windows backend. It was needed for uiTab due to the incorrect way it worked before; soon I will make it the correct way, and we won't need it. --- redo/windows/box.c | 16 ---------------- redo/windows/radiobuttons.c | 7 ------- redo/windows/spinbox.c | 7 ------- 3 files changed, 30 deletions(-) diff --git a/redo/windows/box.c b/redo/windows/box.c index 9809981e..011c2234 100644 --- a/redo/windows/box.c +++ b/redo/windows/box.c @@ -203,22 +203,6 @@ static void boxRelayout(uiWindowsControl *c, intmax_t x, intmax_t y, intmax_t wi uiWindowsFreeSizing(d); } -/* TODO -static int boxHasTabStops(uiControl *c) -{ - uiBox *b = uiBox(c); - struct child *bc; - uintmax_t i; - - for (i = 0; i < b->controls->len; i++) { - bc = ptrArrayIndex(b->controls, struct child *, i); - if (uiControlHasTabStops(bc->c)) - return 1; - } - return 0; -} -*/ - static void boxContainerUpdateState(uiControl *c) { uiBox *b = uiBox(c); diff --git a/redo/windows/radiobuttons.c b/redo/windows/radiobuttons.c index 546d408d..765999ea 100644 --- a/redo/windows/radiobuttons.c +++ b/redo/windows/radiobuttons.c @@ -129,13 +129,6 @@ static uintptr_t radiobuttonsSetZOrder(uiControl *c, uintptr_t insertAfter) } return insertAfter; } - -static int radiobuttonsHasTabStops(uiControl *c) -{ - struct radiobuttons *r = (struct radiobuttons *) c; - - return r->hwnds->len != 0; -} */ void uiRadioButtonsAppend(uiRadioButtons *r, const char *text) diff --git a/redo/windows/spinbox.c b/redo/windows/spinbox.c index 7f764ade..ed9103e2 100644 --- a/redo/windows/spinbox.c +++ b/redo/windows/spinbox.c @@ -152,13 +152,6 @@ static uintptr_t spinboxSetZOrder(uiControl *c, uintptr_t insertAfter) uiWindowsUtilSetZOrder(s->updown, (uintptr_t) (s->hwnd)); return (uintptr_t) (s->updown); } - -static int spinboxHasTabStops(uiControl *c) -{ - struct spinbox *s = (struct spinbox *) c; - - return uiWindowsUtilHasTabStops(s->hwnd); -} */ static void defaultOnChanged(uiSpinbox *s, void *data)