]> git.sur5r.net Git - i3/i3/blobdiff - src/layout.c
Move update_if_necessary to util.c, will be necessary later
[i3/i3] / src / layout.c
index 1017c3dd4dbec17a8e78aa8105c61d0170b2ba21..182870df70b6a9f8c8d3f60e023ec7f6753437e6 100644 (file)
 #include "log.h"
 #include "container.h"
 
-/*
- * Updates *destination with new_value and returns true if it was changed or false
- * if it was the same
- *
- */
-static bool update_if_necessary(uint32_t *destination, const uint32_t new_value) {
-        uint32_t old_value = *destination;
-
-        return ((*destination = new_value) != old_value);
-}
-
 /*
  * Gets the unoccupied space (= space which is available for windows which were resized by the user)
  * for the given row. This is necessary to render both, customly resized windows and never touched