nk_widget_fitting() cleanup of unused variables
This commit is contained in:
parent
7ecb56c3a8
commit
afd830de8f
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user