cleanup
This commit is contained in:
parent
2992b72d61
commit
20f9d49b82
|
@ -1,5 +1,4 @@
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#include <assert.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
@ -283,8 +282,6 @@ void arrange_windows(struct sway_container *container,
|
||||||
container->children->length);
|
container->children->length);
|
||||||
break;
|
break;
|
||||||
case L_VERT:
|
case L_VERT:
|
||||||
assert(container);
|
|
||||||
assert(container->children);
|
|
||||||
apply_vert_layout(container, x, y, width, height, 0,
|
apply_vert_layout(container, x, y, width, height, 0,
|
||||||
container->children->length);
|
container->children->length);
|
||||||
break;
|
break;
|
||||||
|
@ -357,7 +354,6 @@ void apply_vert_layout(struct sway_container *container,
|
||||||
const double x, const double y,
|
const double x, const double y,
|
||||||
const double width, const double height, const int start,
|
const double width, const double height, const int start,
|
||||||
const int end) {
|
const int end) {
|
||||||
assert(container);
|
|
||||||
int i;
|
int i;
|
||||||
double scale = 0;
|
double scale = 0;
|
||||||
// Calculate total height
|
// Calculate total height
|
||||||
|
|
Loading…
Reference in a new issue