Commit c499e557 authored by Paul Eggert's avatar Paul Eggert

* window.c (shrink_windows): Omit unused local var.

parent b01a1c29
2011-03-29 Paul Eggert <eggert@cs.ucla.edu>
* window.c (shrink_windows): Omit unused local var.
* menu.c (digest_single_submenu): Omit unused local var.
* dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
Omit unused local var.
......@@ -2978,14 +2978,10 @@ shrink_windows (int total, int size, int nchildren, int shrinkable,
while (total_shrink > total_removed)
{
int nonzero_sizes = 0;
int nonzero_idx = -1;
for (i = 0; i < nchildren; ++i)
if (new_sizes[i] > 0)
{
++nonzero_sizes;
nonzero_idx = i;
}
++nonzero_sizes;
for (i = 0; i < nchildren; ++i)
if (new_sizes[i] > min_sizes[i])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment