Remove inline keyword

The compiler is smarter at figuring out whether a function should be
inlined or not.
This commit is contained in:
Simon Ser 2020-12-15 13:49:42 +01:00
parent 93cd3a79b2
commit e57a52e7f7
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 2 additions and 2 deletions

View file

@ -221,7 +221,7 @@ uint32_t get_fb_for_bo(struct gbm_bo *bo, bool with_modifiers) {
return id; return id;
} }
static inline bool is_taken(size_t n, const uint32_t arr[static n], uint32_t key) { static bool is_taken(size_t n, const uint32_t arr[static n], uint32_t key) {
for (size_t i = 0; i < n; ++i) { for (size_t i = 0; i < n; ++i) {
if (arr[i] == key) { if (arr[i] == key) {
return true; return true;

View file

@ -1165,7 +1165,7 @@ static bool update_state(int action, bool *state) {
return changed; return changed;
} }
static inline bool xsurface_is_maximized( static bool xsurface_is_maximized(
struct wlr_xwayland_surface *xsurface) { struct wlr_xwayland_surface *xsurface) {
return xsurface->maximized_horz && xsurface->maximized_vert; return xsurface->maximized_horz && xsurface->maximized_vert;
} }