nk_widget_fitting() cleanup of unused variables

This commit is contained in:
te:ma 2020-03-18 21:06:55 +02:00
parent 7ecb56c3a8
commit afd830de8f
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;
}