arrange: Remove pointless call to EwinListGetAll()

This commit is contained in:
Kim Woelders 2022-04-03 19:06:45 +02:00
parent 08b70658d3
commit 31cb37f935
1 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
* Copyright (C) 2004-2020 Kim Woelders * Copyright (C) 2004-2022 Kim Woelders
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to * of this software and associated documentation files (the "Software"), to
@ -940,9 +940,9 @@ ArrangeEwins(const char *params)
{ {
const char *type; const char *type;
int method; int method;
int i, nfix, nflt, num; int i, nfix, nflt;
RectBox *fixed, *ret, *floating; RectBox *fixed, *ret, *floating;
EWin *const *lst, *ewin; EWin *ewin;
type = params; type = params;
method = ARRANGE_BY_SIZE; method = ARRANGE_BY_SIZE;
@ -961,10 +961,6 @@ ArrangeEwins(const char *params)
fixed = floating = ret = NULL; fixed = floating = ret = NULL;
lst = EwinListGetAll(&num);
if (!lst)
goto done;
ArrangeGetRectList(&fixed, &nfix, &floating, &nflt, NULL); ArrangeGetRectList(&fixed, &nfix, &floating, &nflt, NULL);
ret = ECALLOC(RectBox, nflt + nfix); ret = ECALLOC(RectBox, nflt + nfix);