comment unused lines.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 15 Aug 2011 03:41:31 +0000 (03:41 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 15 Aug 2011 03:41:31 +0000 (03:41 +0000)
source/blender/blenlib/intern/BLI_ghash.c
source/blender/editors/interface/interface_regions.c
source/blender/makesrna/RNA_types.h
source/blender/makesrna/intern/rna_access.c

index 3c6a20b8ad6a1920a56af3923ae173e82c9a2761..bfee350037ae898e06c2fc639ed6a09543f877ca 100644 (file)
@@ -128,8 +128,8 @@ int BLI_ghash_remove (GHash *gh, void *key, GHashKeyFreeFP keyfreefp, GHashValFr
                        if (valfreefp) valfreefp(e->val);
                        BLI_mempool_free(gh->entrypool, e);
 
-
-                       e= n;
+                       /* correct but 'e' isnt used before return */
+                       /* e= n; */ /*UNUSED*/
                        if (p)
                                p->next = n;
                        else
index f7460e77030a8f026971acb6c1d4dfc0ef7d4263..8bce27e366b0a58e427c53f781f0efdd38a403f2 100644 (file)
@@ -1188,7 +1188,7 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
        uiBut *bt;
        uiSafetyRct *saferct;
        rctf butrct;
-       float aspect;
+       /*float aspect;*/ /*UNUSED*/
        int xsize, ysize, xof=0, yof=0, center;
        short dir1= 0, dir2=0;
        
@@ -1223,7 +1223,7 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
                }
        }
        
-       aspect= (float)(block->maxx - block->minx + 4);
+       /*aspect= (float)(block->maxx - block->minx + 4);*/ /*UNUSED*/
        ui_block_to_window_fl(butregion, but->block, &block->minx, &block->miny);
        ui_block_to_window_fl(butregion, but->block, &block->maxx, &block->maxy);
 
@@ -1232,7 +1232,7 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
        
        xsize= block->maxx - block->minx+4; // 4 for shadow
        ysize= block->maxy - block->miny+4;
-       aspect/= (float)xsize;
+       /*aspect/= (float)xsize;*/ /*UNUSED*/
 
        if(but) {
                int left=0, right=0, top=0, down=0;
index ec213d6a496cbbe13b5e975a662d5ba5a5f96f28..f8199074f27bac48e9b4fcfb02faaa4e837311fe 100644 (file)
@@ -281,7 +281,7 @@ typedef struct ParameterList {
 
 typedef struct ParameterIterator {
        struct ParameterList *parms;
-       PointerRNA funcptr;
+       /* PointerRNA funcptr; */ /*UNUSED*/
        void *data;
        int size, offset;
 
index f100ebd612921d13e0fa792b0f62f1c48fbd16f5..88447f6dd770b3b1dcd9bc8bc15b6a2abba56f03 100644 (file)
@@ -4509,7 +4509,8 @@ int  RNA_parameter_list_ret_count(ParameterList *parms)
 
 void RNA_parameter_list_begin(ParameterList *parms, ParameterIterator *iter)
 {
-       RNA_pointer_create(NULL, &RNA_Function, parms->func, &iter->funcptr);
+       /* may be useful but unused now */
+       /* RNA_pointer_create(NULL, &RNA_Function, parms->func, &iter->funcptr); */ /*UNUSED*/
 
        iter->parms= parms;
        iter->parm= parms->func->cont.properties.first;