Remove various unused parameters

This commit is contained in:
Orestis Floros
2019-10-20 16:14:20 +03:00
parent 428cb94e29
commit 17d0cd7034
5 changed files with 9 additions and 9 deletions

View File

@ -426,7 +426,7 @@ static direction_t parse_direction(const char *str) {
}
}
static void cmd_resize_floating(I3_CMD, const char *way, const char *direction_str, Con *floating_con, int px) {
static void cmd_resize_floating(I3_CMD, const char *direction_str, Con *floating_con, int px) {
Rect old_rect = floating_con->rect;
Con *focused_con = con_descend_focused(floating_con);
@ -596,7 +596,7 @@ void cmd_resize(I3_CMD, const char *way, const char *direction, long resize_px,
Con *floating_con;
if ((floating_con = con_inside_floating(current->con))) {
cmd_resize_floating(current_match, cmd_output, way, direction, floating_con, resize_px);
cmd_resize_floating(current_match, cmd_output, direction, floating_con, resize_px);
} else {
if (strcmp(direction, "width") == 0 ||
strcmp(direction, "height") == 0) {
@ -1089,7 +1089,7 @@ void cmd_floating(I3_CMD, const char *floating_mode) {
if (strcmp(floating_mode, "enable") == 0) {
floating_enable(current->con, false);
} else {
floating_disable(current->con, false);
floating_disable(current->con);
}
}
}

View File

@ -421,7 +421,7 @@ void floating_enable(Con *con, bool automatic) {
ipc_send_window_event("floating", con);
}
void floating_disable(Con *con, bool automatic) {
void floating_disable(Con *con) {
if (!con_is_floating(con)) {
LOG("Container isn't floating, not doing anything.\n");
return;
@ -469,7 +469,7 @@ void toggle_floating_mode(Con *con, bool automatic) {
if (con_is_floating(con)) {
LOG("already floating, re-setting to tiling\n");
floating_disable(con, automatic);
floating_disable(con);
return;
}

View File

@ -282,7 +282,7 @@ void tree_move(Con *con, direction_t direction) {
if (!same_orientation) {
if (con_is_floating(con)) {
/* this is a floating con, we just disable floating */
floating_disable(con, true);
floating_disable(con);
return;
}
if (con_inside_floating(con)) {