Sfoglia il codice sorgente

Removed unused variables

vurtun 9 anni fa
parent
commit
1cc7697d58
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      nuklear.h

+ 0 - 4
nuklear.h

@@ -3062,7 +3062,6 @@ nk_strlen(const char *str)
 NK_API int
 NK_API int
 nk_strtoi(const char *str, char **endptr)
 nk_strtoi(const char *str, char **endptr)
 {
 {
-    int m;
     int neg = 1.0;
     int neg = 1.0;
     const char *p = str;
     const char *p = str;
     int value = 0;
     int value = 0;
@@ -13921,7 +13920,6 @@ nk_do_property(nk_flags *ws,
 
 
     if (old && !active) {
     if (old && !active) {
         /* property is now not active so convert edit text to value*/
         /* property is now not active so convert edit text to value*/
-        double value;
         *state = NK_PROPERTY_DEFAULT;
         *state = NK_PROPERTY_DEFAULT;
         buffer[*len] = '\0';
         buffer[*len] = '\0';
         switch (variant->kind) {
         switch (variant->kind) {
@@ -18623,7 +18621,6 @@ NK_API void
 nk_property_int(struct nk_context *ctx, const char *name,
 nk_property_int(struct nk_context *ctx, const char *name,
     int min, int *val, int max, int step, float inc_per_pixel)
     int min, int *val, int max, int step, float inc_per_pixel)
 {
 {
-    float value;
     struct nk_property_variant variant;
     struct nk_property_variant variant;
     NK_ASSERT(ctx);
     NK_ASSERT(ctx);
     NK_ASSERT(name);
     NK_ASSERT(name);
@@ -18652,7 +18649,6 @@ NK_API void
 nk_property_double(struct nk_context *ctx, const char *name,
 nk_property_double(struct nk_context *ctx, const char *name,
     double min, double *val, double max, double step, float inc_per_pixel)
     double min, double *val, double max, double step, float inc_per_pixel)
 {
 {
-    float value;
     struct nk_property_variant variant;
     struct nk_property_variant variant;
     NK_ASSERT(ctx);
     NK_ASSERT(ctx);
     NK_ASSERT(name);
     NK_ASSERT(name);