Cleanup: unused struct members

This commit is contained in:
2020-06-23 23:46:26 +10:00
parent a9e5e58e16
commit 31dd80e0de
5 changed files with 6 additions and 11 deletions

View File

@@ -97,8 +97,6 @@ typedef struct EXTERNAL_PrivateData {
/* Do we need to update the depth or can we reuse the last calculated texture. */
bool need_depth;
bool update_depth;
float last_persmat[4][4];
} EXTERNAL_PrivateData; /* Transient data */
/* Functions */

View File

@@ -94,9 +94,8 @@ struct LaplacianSystem {
float (*verts)[3]; /* vertex coordinates */
float (*vnors)[3]; /* vertex normals */
float (*root)[3]; /* bone root */
float (*tip)[3]; /* bone tip */
float (*source)[3]; /* vertex source */
float (*root)[3]; /* bone root */
float (*tip)[3]; /* bone tip */
int numsource;
float *H; /* diagonal H matrix */

View File

@@ -2611,11 +2611,6 @@ static void update_brush_local_mat(Sculpt *sd, Object *ob)
}
}
/* Note: uses after-struct allocated mem to store actual cache... */
typedef struct SculptDoBrushSmoothGridDataChunk {
size_t tmpgrid_size;
} SculptDoBrushSmoothGridDataChunk;
typedef struct {
SculptSession *ss;
const float *ray_start;

View File

@@ -44,6 +44,8 @@ static struct GPUPlatformGlobal {
char *gpu_name;
} GPG = {false};
/* Remove this? */
#if 0
typedef struct GPUPlatformSupportTest {
eGPUSupportLevel support_level;
eGPUDeviceType device;
@@ -53,6 +55,7 @@ typedef struct GPUPlatformSupportTest {
const char *renderer;
const char *version;
} GPUPlatformSupportTest;
#endif
eGPUSupportLevel GPU_platform_support_level(void)
{

View File

@@ -208,7 +208,7 @@ typedef struct {
uint is_cull_face : 1;
uint is_depth_test : 1;
uint is_dither : 1;
uint is_lighting : 1;
/* uint is_lighting : 1; */ /* UNUSED */
uint is_line_smooth : 1;
uint is_color_logic_op : 1;
uint is_multisample : 1;