comment unused lines.
This commit is contained in:
@@ -128,8 +128,8 @@ int BLI_ghash_remove (GHash *gh, void *key, GHashKeyFreeFP keyfreefp, GHashValFr
|
|||||||
if (valfreefp) valfreefp(e->val);
|
if (valfreefp) valfreefp(e->val);
|
||||||
BLI_mempool_free(gh->entrypool, e);
|
BLI_mempool_free(gh->entrypool, e);
|
||||||
|
|
||||||
|
/* correct but 'e' isnt used before return */
|
||||||
e= n;
|
/* e= n; */ /*UNUSED*/
|
||||||
if (p)
|
if (p)
|
||||||
p->next = n;
|
p->next = n;
|
||||||
else
|
else
|
||||||
|
@@ -1188,7 +1188,7 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
|
|||||||
uiBut *bt;
|
uiBut *bt;
|
||||||
uiSafetyRct *saferct;
|
uiSafetyRct *saferct;
|
||||||
rctf butrct;
|
rctf butrct;
|
||||||
float aspect;
|
/*float aspect;*/ /*UNUSED*/
|
||||||
int xsize, ysize, xof=0, yof=0, center;
|
int xsize, ysize, xof=0, yof=0, center;
|
||||||
short dir1= 0, dir2=0;
|
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->minx, &block->miny);
|
||||||
ui_block_to_window_fl(butregion, but->block, &block->maxx, &block->maxy);
|
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
|
xsize= block->maxx - block->minx+4; // 4 for shadow
|
||||||
ysize= block->maxy - block->miny+4;
|
ysize= block->maxy - block->miny+4;
|
||||||
aspect/= (float)xsize;
|
/*aspect/= (float)xsize;*/ /*UNUSED*/
|
||||||
|
|
||||||
if(but) {
|
if(but) {
|
||||||
int left=0, right=0, top=0, down=0;
|
int left=0, right=0, top=0, down=0;
|
||||||
|
@@ -281,7 +281,7 @@ typedef struct ParameterList {
|
|||||||
|
|
||||||
typedef struct ParameterIterator {
|
typedef struct ParameterIterator {
|
||||||
struct ParameterList *parms;
|
struct ParameterList *parms;
|
||||||
PointerRNA funcptr;
|
/* PointerRNA funcptr; */ /*UNUSED*/
|
||||||
void *data;
|
void *data;
|
||||||
int size, offset;
|
int size, offset;
|
||||||
|
|
||||||
|
@@ -4509,7 +4509,8 @@ int RNA_parameter_list_ret_count(ParameterList *parms)
|
|||||||
|
|
||||||
void RNA_parameter_list_begin(ParameterList *parms, ParameterIterator *iter)
|
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->parms= parms;
|
||||||
iter->parm= parms->func->cont.properties.first;
|
iter->parm= parms->func->cont.properties.first;
|
||||||
|
Reference in New Issue
Block a user