diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-04-03 13:10:51 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-04-03 13:10:51 -0400 |
commit | fcbcbf34adbcfbfc4107c5e0050639828265e122 (patch) | |
tree | abf10e145c74576c180bcfc3a7922f773b2cf223 | |
parent | unify workspace create functions (diff) | |
download | sway-fcbcbf34adbcfbfc4107c5e0050639828265e122.tar.gz sway-fcbcbf34adbcfbfc4107c5e0050639828265e122.tar.zst sway-fcbcbf34adbcfbfc4107c5e0050639828265e122.zip |
make container_finish private
-rw-r--r-- | include/sway/tree/container.h | 3 | ||||
-rw-r--r-- | sway/tree/container.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index c6393dc0..88ca67e9 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -130,9 +130,6 @@ struct sway_container *container_view_create( | |||
130 | // TODO don't return the parent on destroy | 130 | // TODO don't return the parent on destroy |
131 | struct sway_container *container_destroy(struct sway_container *container); | 131 | struct sway_container *container_destroy(struct sway_container *container); |
132 | 132 | ||
133 | // TODO make me private | ||
134 | struct sway_container *container_finish(struct sway_container *cont); | ||
135 | |||
136 | struct sway_container *container_close(struct sway_container *container); | 133 | struct sway_container *container_close(struct sway_container *container); |
137 | 134 | ||
138 | // TODO move to layout.c | 135 | // TODO move to layout.c |
diff --git a/sway/tree/container.c b/sway/tree/container.c index 7ccd43ea..7cc8caa6 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -77,7 +77,7 @@ struct sway_container *container_create(enum sway_container_type type) { | |||
77 | return c; | 77 | return c; |
78 | } | 78 | } |
79 | 79 | ||
80 | struct sway_container *container_finish(struct sway_container *cont) { | 80 | static struct sway_container *container_finish(struct sway_container *cont) { |
81 | if (cont == NULL) { | 81 | if (cont == NULL) { |
82 | return NULL; | 82 | return NULL; |
83 | } | 83 | } |