Merge pull request #86 from exchg/cleanup

nk_widget_fitting() cleanup of unused variables
This commit is contained in:
dumblob 2020-03-18 21:23:20 +01:00 committed by GitHub
commit a3a37c9fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 14 deletions

View File

@ -22823,11 +22823,8 @@ nk_widget_fitting(struct nk_rect *bounds, struct nk_context *ctx,
struct nk_vec2 item_padding)
{
/* update the bounds to stand without padding */
struct nk_window *win;
struct nk_style *style;
struct nk_panel *layout;
enum nk_widget_layout_states state;
struct nk_vec2 panel_padding;
NK_UNUSED(item_padding);
NK_ASSERT(ctx);
NK_ASSERT(ctx->current);
@ -22835,9 +22832,6 @@ nk_widget_fitting(struct nk_rect *bounds, struct nk_context *ctx,
if (!ctx || !ctx->current || !ctx->current->layout)
return NK_WIDGET_INVALID;
win = ctx->current;
style = &ctx->style;
layout = win->layout;
state = nk_widget(bounds, ctx);
return state;
}

View File

@ -184,11 +184,8 @@ nk_widget_fitting(struct nk_rect *bounds, struct nk_context *ctx,
struct nk_vec2 item_padding)
{
/* update the bounds to stand without padding */
struct nk_window *win;
struct nk_style *style;
struct nk_panel *layout;
enum nk_widget_layout_states state;
struct nk_vec2 panel_padding;
NK_UNUSED(item_padding);
NK_ASSERT(ctx);
NK_ASSERT(ctx->current);
@ -196,9 +193,6 @@ nk_widget_fitting(struct nk_rect *bounds, struct nk_context *ctx,
if (!ctx || !ctx->current || !ctx->current->layout)
return NK_WIDGET_INVALID;
win = ctx->current;
style = &ctx->style;
layout = win->layout;
state = nk_widget(bounds, ctx);
return state;
}