From 99735d22776eb0d958a17a9b07471da6dafabd42 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 6 May 2013 16:03:11 +0000 Subject: remove group in client_delete directly. --- group.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'group.c') diff --git a/group.c b/group.c index 90409ef..bf8f694 100644 --- a/group.c +++ b/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: group.c,v 1.75 2013/04/30 21:10:23 okan Exp $ + * $OpenBSD: group.c,v 1.76 2013/05/06 16:03:11 okan Exp $ */ #include @@ -308,17 +308,6 @@ group_cycle(struct screen_ctx *sc, int flags) group_setactive(sc, showgroup->shortcut); } -/* called when a client is deleted */ -void -group_client_delete(struct client_ctx *cc) -{ - if (cc->group == NULL) - return; - - TAILQ_REMOVE(&cc->group->clients, cc, group_entry); - cc->group = NULL; /* he he */ -} - void group_menu(XButtonEvent *e) { -- cgit v1.2.3-2-gb3c3