Cleanup: remove redundant struct declarations

This commit is contained in:
2020-12-16 16:19:04 +11:00
parent 588f107f11
commit b347c4e9ca
67 changed files with 3 additions and 112 deletions

View File

@@ -45,8 +45,6 @@ struct NlaKeyframingContext;
struct PathResolvedRNA; struct PathResolvedRNA;
struct PointerRNA; struct PointerRNA;
struct PropertyRNA; struct PropertyRNA;
struct ReportList;
struct Scene;
struct bAction; struct bAction;
struct bActionGroup; struct bActionGroup;
struct bContext; struct bContext;

View File

@@ -35,7 +35,6 @@ extern "C" {
struct CustomData; struct CustomData;
struct CustomDataLayer; struct CustomDataLayer;
struct ID; struct ID;
struct PointerRNA;
struct ReportList; struct ReportList;
/* Attribute.domain */ /* Attribute.domain */

View File

@@ -26,8 +26,6 @@
#include "BLI_color.hh" #include "BLI_color.hh"
#include "BLI_float3.hh" #include "BLI_float3.hh"
struct Mesh;
namespace blender::bke { namespace blender::bke {
using fn::CPPType; using fn::CPPType;

View File

@@ -31,7 +31,6 @@ extern "C" {
struct Object; struct Object;
struct Material; struct Material;
struct ID;
struct Main; struct Main;
uint32_t BKE_cryptomatte_hash(const char *name, int name_len); uint32_t BKE_cryptomatte_hash(const char *name, int name_len);

View File

@@ -35,9 +35,7 @@ struct BMLoop;
struct BMesh; struct BMesh;
struct BoundBox; struct BoundBox;
struct Depsgraph; struct Depsgraph;
struct EditMeshData;
struct Mesh; struct Mesh;
struct MeshStatVis;
struct Object; struct Object;
struct Scene; struct Scene;

View File

@@ -36,7 +36,6 @@ struct ListBase;
struct MDeformVert; struct MDeformVert;
struct Main; struct Main;
struct Material; struct Material;
struct MaterialGPencilStyle;
struct Object; struct Object;
struct Scene; struct Scene;
struct SpaceImage; struct SpaceImage;
@@ -46,7 +45,6 @@ struct bDeformGroup;
struct bGPDframe; struct bGPDframe;
struct bGPDlayer; struct bGPDlayer;
struct bGPDlayer_Mask; struct bGPDlayer_Mask;
struct bGPDspoint;
struct bGPDstroke; struct bGPDstroke;
struct bGPDcurve; struct bGPDcurve;
struct bGPdata; struct bGPdata;

View File

@@ -33,7 +33,6 @@ struct Main;
struct Object; struct Object;
struct Scene; struct Scene;
struct bGPDframe; struct bGPDframe;
struct bGPDlayer;
struct bGPDspoint; struct bGPDspoint;
struct bGPDstroke; struct bGPDstroke;
struct bGPdata; struct bGPdata;

View File

@@ -26,7 +26,6 @@
extern "C" { extern "C" {
#endif #endif
struct Ipo;
struct Main; struct Main;
void do_versions_ipos_to_animato(struct Main *main); void do_versions_ipos_to_animato(struct Main *main);

View File

@@ -38,7 +38,6 @@ struct Main;
struct Mesh; struct Mesh;
struct Object; struct Object;
struct Scene; struct Scene;
struct bGPDstroke;
void BKE_lattice_resize(struct Lattice *lt, int u, int v, int w, struct Object *ltOb); void BKE_lattice_resize(struct Lattice *lt, int u, int v, int w, struct Object *ltOb);
struct Lattice *BKE_lattice_add(struct Main *bmain, const char *name); struct Lattice *BKE_lattice_add(struct Main *bmain, const char *name);

View File

@@ -51,7 +51,6 @@
extern "C" { extern "C" {
#endif #endif
struct BlendDataReader;
struct BlendWriter; struct BlendWriter;
struct GHash; struct GHash;
struct ID; struct ID;

View File

@@ -38,8 +38,6 @@
extern "C" { extern "C" {
#endif #endif
struct wmWindowManager;
/* BKE_libblock_free, delete are declared in BKE_lib_id.h for convenience. */ /* BKE_libblock_free, delete are declared in BKE_lib_id.h for convenience. */
/* Also IDRemap->flag. */ /* Also IDRemap->flag. */

View File

@@ -26,7 +26,6 @@
#include "BLI_utildefines.h" #include "BLI_utildefines.h"
struct BLI_Stack; struct BLI_Stack;
struct BMEditMesh;
struct BMesh; struct BMesh;
struct BMeshCreateParams; struct BMeshCreateParams;
struct BMeshFromMeshParams; struct BMeshFromMeshParams;

View File

@@ -55,7 +55,6 @@ struct Paint;
struct PaintCurve; struct PaintCurve;
struct Palette; struct Palette;
struct PaletteColor; struct PaletteColor;
struct ReportList;
struct Scene; struct Scene;
struct StrokeCache; struct StrokeCache;
struct SubdivCCG; struct SubdivCCG;

View File

@@ -48,7 +48,6 @@ struct PBVH;
struct PBVHNode; struct PBVHNode;
struct SubdivCCG; struct SubdivCCG;
struct TaskParallelSettings; struct TaskParallelSettings;
struct TaskParallelTLS;
typedef struct PBVH PBVH; typedef struct PBVH PBVH;
typedef struct PBVHNode PBVHNode; typedef struct PBVHNode PBVHNode;

View File

@@ -51,7 +51,6 @@ struct View3D;
struct View3DShading; struct View3DShading;
struct WorkSpace; struct WorkSpace;
struct bContext; struct bContext;
struct bContextDataResult;
struct bScreen; struct bScreen;
struct uiLayout; struct uiLayout;
struct uiList; struct uiList;

View File

@@ -26,7 +26,6 @@ extern "C" {
#endif #endif
struct Main; struct Main;
struct Speaker;
void *BKE_speaker_add(struct Main *bmain, const char *name); void *BKE_speaker_add(struct Main *bmain, const char *name);

View File

@@ -26,10 +26,8 @@
#include "BLI_sys_types.h" #include "BLI_sys_types.h"
struct BMesh; struct BMesh;
struct Depsgraph;
struct Mesh; struct Mesh;
struct MultiresModifierData; struct MultiresModifierData;
struct Object;
typedef struct MultiresUnsubdivideGrid { typedef struct MultiresUnsubdivideGrid {
/* For sanity checks. */ /* For sanity checks. */

View File

@@ -35,7 +35,6 @@ extern "C" {
#define BLENDER_MAX_THREADS 1024 #define BLENDER_MAX_THREADS 1024
struct ListBase; struct ListBase;
struct TaskScheduler;
/* Threading API */ /* Threading API */

View File

@@ -34,16 +34,13 @@
#include "zlib.h" #include "zlib.h"
struct BLOCacheStorage; struct BLOCacheStorage;
struct GSet;
struct IDNameLib_Map; struct IDNameLib_Map;
struct Key; struct Key;
struct MemFile; struct MemFile;
struct Object; struct Object;
struct OldNewMap; struct OldNewMap;
struct PartEff;
struct ReportList; struct ReportList;
struct UserDef; struct UserDef;
struct View3D;
typedef struct IDNameLib_Map IDNameLib_Map; typedef struct IDNameLib_Map IDNameLib_Map;

View File

@@ -39,7 +39,6 @@ struct Main;
struct Object; struct Object;
struct Scene; struct Scene;
struct Simulation; struct Simulation;
struct ViewLayer;
struct bNodeTree; struct bNodeTree;
#include "BLI_sys_types.h" #include "BLI_sys_types.h"

View File

@@ -45,7 +45,6 @@
#include "intern/node/deg_node_id.h" #include "intern/node/deg_node_id.h"
#include "intern/node/deg_node_operation.h" #include "intern/node/deg_node_operation.h"
struct Base;
struct CacheFile; struct CacheFile;
struct Camera; struct Camera;
struct Collection; struct Collection;

View File

@@ -25,8 +25,6 @@
#pragma once #pragma once
struct Main;
namespace blender { namespace blender {
namespace deg { namespace deg {

View File

@@ -39,10 +39,7 @@ extern DrawEngineType draw_engine_gpencil_type;
struct GPENCIL_Data; struct GPENCIL_Data;
struct GPENCIL_StorageList; struct GPENCIL_StorageList;
struct GPUBatch; struct GPUBatch;
struct GPUVertBuf;
struct GPUVertFormat;
struct GpencilBatchCache; struct GpencilBatchCache;
struct MaterialGPencilStyle;
struct Object; struct Object;
struct RenderEngine; struct RenderEngine;
struct RenderLayer; struct RenderLayer;

View File

@@ -25,11 +25,9 @@ extern "C" {
#endif #endif
/* Forward declarations */ /* Forward declarations */
struct GPUBatch;
struct GPUTexture; struct GPUTexture;
struct ImBuf; struct ImBuf;
struct Image; struct Image;
struct rcti;
/* *********** LISTS *********** */ /* *********** LISTS *********** */

View File

@@ -64,7 +64,6 @@
#include "DEG_depsgraph.h" #include "DEG_depsgraph.h"
struct GPUBatch; struct GPUBatch;
struct GPUFrameBuffer;
struct GPUMaterial; struct GPUMaterial;
struct GPUShader; struct GPUShader;
struct GPUTexture; struct GPUTexture;

View File

@@ -22,10 +22,8 @@
#pragma once #pragma once
struct DRWPass;
struct DRWShadingGroup; struct DRWShadingGroup;
struct FluidModifierData; struct FluidModifierData;
struct GPUMaterial;
struct ModifierData; struct ModifierData;
struct Object; struct Object;
struct ParticleSystem; struct ParticleSystem;

View File

@@ -31,7 +31,6 @@ struct Base;
struct Bone; struct Bone;
struct Depsgraph; struct Depsgraph;
struct EditBone; struct EditBone;
struct IDProperty;
struct ListBase; struct ListBase;
struct Main; struct Main;
struct Mesh; struct Mesh;

View File

@@ -51,7 +51,6 @@ struct ScrArea;
struct SnapObjectContext; struct SnapObjectContext;
struct ToolSettings; struct ToolSettings;
struct View3D; struct View3D;
struct ViewLayer;
struct bContext; struct bContext;
struct Material; struct Material;

View File

@@ -34,12 +34,10 @@ struct ARegion;
struct ImBuf; struct ImBuf;
struct Image; struct Image;
struct ImageUser; struct ImageUser;
struct LinkNodePair;
struct Main; struct Main;
struct ReportList; struct ReportList;
struct Scene; struct Scene;
struct SpaceImage; struct SpaceImage;
struct ViewLayer;
struct bContext; struct bContext;
struct wmOperator; struct wmOperator;
struct wmWindowManager; struct wmWindowManager;

View File

@@ -53,7 +53,6 @@ struct uiLayout;
struct wmKeyConfig; struct wmKeyConfig;
struct wmOperator; struct wmOperator;
struct wmOperatorType; struct wmOperatorType;
struct wmWindowManager;
/* object_edit.c */ /* object_edit.c */
/* context.object */ /* context.object */

View File

@@ -32,7 +32,6 @@ extern "C" {
struct Object; struct Object;
struct bContext; struct bContext;
struct wmKeyConfig; struct wmKeyConfig;
struct wmMsgBus;
struct wmOperatorType; struct wmOperatorType;
void ED_keymap_transform(struct wmKeyConfig *keyconf); void ED_keymap_transform(struct wmKeyConfig *keyconf);
@@ -108,7 +107,6 @@ bool calculateTransformCenter(struct bContext *C,
struct Object; struct Object;
struct Scene; struct Scene;
struct wmGizmoGroup;
struct wmGizmoGroupType; struct wmGizmoGroupType;
/* UNUSED */ /* UNUSED */

View File

@@ -31,7 +31,6 @@ struct BMVert;
struct ARegion; struct ARegion;
struct Depsgraph; struct Depsgraph;
struct ListBase; struct ListBase;
struct Main;
struct Object; struct Object;
struct Scene; struct Scene;
struct View3D; struct View3D;

View File

@@ -31,7 +31,6 @@ extern "C" {
#endif #endif
struct ARegion; struct ARegion;
struct Main;
struct bContext; struct bContext;
struct wmEvent; struct wmEvent;
struct wmOperator; struct wmOperator;

View File

@@ -33,7 +33,6 @@ struct BMEditMesh;
struct BMFace; struct BMFace;
struct BMLoop; struct BMLoop;
struct BMesh; struct BMesh;
struct Depsgraph;
struct Image; struct Image;
struct ImageUser; struct ImageUser;
struct Main; struct Main;

View File

@@ -41,8 +41,6 @@ struct Camera;
struct CustomData_MeshMasks; struct CustomData_MeshMasks;
struct Depsgraph; struct Depsgraph;
struct EditBone; struct EditBone;
struct GPUOffScreen;
struct GPUViewport;
struct ID; struct ID;
struct MVert; struct MVert;
struct Main; struct Main;
@@ -55,7 +53,6 @@ struct RenderEngineType;
struct Scene; struct Scene;
struct ScrArea; struct ScrArea;
struct View3D; struct View3D;
struct View3DShading;
struct ViewContext; struct ViewContext;
struct ViewLayer; struct ViewLayer;
struct bContext; struct bContext;
@@ -64,8 +61,6 @@ struct bScreen;
struct rctf; struct rctf;
struct rcti; struct rcti;
struct wmGizmo; struct wmGizmo;
struct wmOperator;
struct wmOperatorType;
struct wmWindow; struct wmWindow;
struct wmWindowManager; struct wmWindowManager;

View File

@@ -50,7 +50,6 @@ struct PointerRNA;
struct PropertyRNA; struct PropertyRNA;
struct ReportList; struct ReportList;
struct ResultBLF; struct ResultBLF;
struct ScrArea;
struct bContext; struct bContext;
struct bContextStore; struct bContextStore;
struct bNode; struct bNode;

View File

@@ -43,7 +43,6 @@ struct wmEvent;
struct wmKeyConfig; struct wmKeyConfig;
struct wmOperator; struct wmOperator;
struct wmOperatorType; struct wmOperatorType;
struct wmWindowManager;
enum ePaintMode; enum ePaintMode;
enum ePaintSymmetryFlags; enum ePaintSymmetryFlags;

View File

@@ -39,7 +39,6 @@
struct AutomaskingCache; struct AutomaskingCache;
struct KeyBlock; struct KeyBlock;
struct Object; struct Object;
struct SculptPoseIKChainSegment;
struct SculptUndoNode; struct SculptUndoNode;
struct bContext; struct bContext;

View File

@@ -35,7 +35,6 @@ struct bContext;
struct bContextDataResult; struct bContextDataResult;
struct bNode; struct bNode;
struct bNodeTree; struct bNodeTree;
struct uiLayout;
struct wmOperatorType; struct wmOperatorType;
struct SpaceProperties_Runtime { struct SpaceProperties_Runtime {

View File

@@ -23,7 +23,6 @@
#include "tree_element.hh" #include "tree_element.hh"
struct NlaTrack; struct NlaTrack;
struct NlaStrip;
namespace blender::ed::outliner { namespace blender::ed::outliner {

View File

@@ -52,12 +52,12 @@ struct SnapObjectContext;
struct TransDataContainer; struct TransDataContainer;
struct TransInfo; struct TransInfo;
struct TransSnap; struct TransSnap;
struct TransformOrientation;
struct ViewLayer; struct ViewLayer;
struct bContext; struct bContext;
struct wmEvent; struct wmEvent;
struct wmKeyConfig; struct wmKeyConfig;
struct wmKeyMap; struct wmKeyMap;
struct wmOperator;
struct wmTimer; struct wmTimer;
/** #TransInfo.redraw */ /** #TransInfo.redraw */

View File

@@ -29,12 +29,9 @@ struct FCurve;
struct ListBase; struct ListBase;
struct Object; struct Object;
struct TransData; struct TransData;
struct TransDataContainer;
struct TransDataCurveHandleFlags; struct TransDataCurveHandleFlags;
struct TransInfo; struct TransInfo;
struct bContext; struct bContext;
struct bKinematicConstraint;
struct bPoseChannel;
/* transform_convert.c */ /* transform_convert.c */
void transform_autoik_update(TransInfo *t, short mode); void transform_autoik_update(TransInfo *t, short mode);

View File

@@ -25,8 +25,6 @@
/* For enum. */ /* For enum. */
#include "DNA_space_types.h" #include "DNA_space_types.h"
struct SnapObjectParams;
bool peelObjectsTransform(struct TransInfo *t, bool peelObjectsTransform(struct TransInfo *t,
const float mval[2], const float mval[2],
const bool use_peel_object, const bool use_peel_object,

View File

@@ -25,7 +25,6 @@
struct BMFace; struct BMFace;
struct BMLoop; struct BMLoop;
struct Image;
struct Object; struct Object;
struct Scene; struct Scene;
struct SpaceImage; struct SpaceImage;

View File

@@ -23,9 +23,7 @@
#pragma once #pragma once
struct GHash;
struct MDeformVert; struct MDeformVert;
struct Main;
struct Material; struct Material;
struct Object; struct Object;
struct bGPDlayer; struct bGPDlayer;

View File

@@ -27,8 +27,6 @@
extern "C" { extern "C" {
#endif #endif
struct GPUTexture;
struct GPUUniformBuf;
struct GPUVertBuf; struct GPUVertBuf;
/** Opaque type hidding blender::gpu::Shader */ /** Opaque type hidding blender::gpu::Shader */

View File

@@ -28,14 +28,6 @@
#include "GPU_state.h" #include "GPU_state.h"
struct GPUVertBuf; struct GPUVertBuf;
struct ImBuf;
struct Image;
struct ImageUser;
struct MovieClip;
struct MovieClipUser;
struct PreviewImage;
struct GPUFrameBuffer;
/** Opaque type hiding blender::gpu::Texture. */ /** Opaque type hiding blender::gpu::Texture. */
typedef struct GPUTexture GPUTexture; typedef struct GPUTexture GPUTexture;

View File

@@ -31,10 +31,7 @@ extern "C" {
struct GPUMaterial; struct GPUMaterial;
struct GPUNodeGraph; struct GPUNodeGraph;
struct GPUOutput;
struct GPUShader; struct GPUShader;
struct GSet;
struct ListBase;
typedef struct GPUPass { typedef struct GPUPass {
struct GPUPass *next; struct GPUPass *next;

View File

@@ -33,8 +33,6 @@
struct GPUNode; struct GPUNode;
struct GPUOutput; struct GPUOutput;
struct GPUShader;
struct GPUVertAttrLayers;
struct ListBase; struct ListBase;
typedef enum eGPUDataSource { typedef enum eGPUDataSource {

View File

@@ -24,6 +24,8 @@
#include "BLI_sys_types.h" #include "BLI_sys_types.h"
struct GPUUniformBuf;
namespace blender { namespace blender {
namespace gpu { namespace gpu {

View File

@@ -29,7 +29,6 @@
#include <Alembic/Abc/OObject.h> #include <Alembic/Abc/OObject.h>
struct Depsgraph; struct Depsgraph;
struct ID;
struct Object; struct Object;
namespace blender::io::alembic { namespace blender::io::alembic {

View File

@@ -29,7 +29,6 @@
#include "DNA_material_types.h" #include "DNA_material_types.h"
struct IDProperty; struct IDProperty;
struct Material;
struct Object; struct Object;
namespace blender::io::alembic { namespace blender::io::alembic {

View File

@@ -23,9 +23,6 @@
#include <Alembic/AbcGeom/OCurves.h> #include <Alembic/AbcGeom/OCurves.h>
#include <vector> #include <vector>
struct ParticleSettings;
struct ParticleSystem;
namespace blender::io::alembic { namespace blender::io::alembic {
class ABCHairWriter : public ABCAbstractWriter { class ABCHairWriter : public ABCAbstractWriter {

View File

@@ -28,7 +28,6 @@
#include <fstream> #include <fstream>
struct Main; struct Main;
struct Scene;
namespace blender::io::alembic { namespace blender::io::alembic {

View File

@@ -43,13 +43,11 @@
#include <set> #include <set>
#include <string> #include <string>
struct Base;
struct Depsgraph; struct Depsgraph;
struct DupliObject; struct DupliObject;
struct ID; struct ID;
struct Object; struct Object;
struct ParticleSystem; struct ParticleSystem;
struct ViewLayer;
namespace blender::io { namespace blender::io {

View File

@@ -24,7 +24,6 @@
#include <pxr/usd/usd/common.h> #include <pxr/usd/usd/common.h>
struct Depsgraph; struct Depsgraph;
struct Object;
namespace blender::io::usd { namespace blender::io::usd {

View File

@@ -28,7 +28,6 @@
#include <pxr/usd/usd/timeCode.h> #include <pxr/usd/usd/timeCode.h>
struct Depsgraph; struct Depsgraph;
struct ID;
struct Object; struct Object;
namespace blender::io::usd { namespace blender::io::usd {

View File

@@ -33,7 +33,6 @@
#include "DNA_material_types.h" #include "DNA_material_types.h"
struct Material; struct Material;
struct Object;
namespace blender::io::usd { namespace blender::io::usd {

View File

@@ -25,7 +25,6 @@
extern "C" { extern "C" {
#endif #endif
struct Scene;
struct bContext; struct bContext;
struct USDExportParams { struct USDExportParams {

View File

@@ -35,7 +35,6 @@ struct AnimData;
struct BVHCache; struct BVHCache;
struct Ipo; struct Ipo;
struct Key; struct Key;
struct LinkNode;
struct MCol; struct MCol;
struct MEdge; struct MEdge;
struct MFace; struct MFace;
@@ -44,7 +43,6 @@ struct MLoopCol;
struct MLoopTri; struct MLoopTri;
struct MLoopUV; struct MLoopUV;
struct MPoly; struct MPoly;
struct MPropCol;
struct MVert; struct MVert;
struct Material; struct Material;
struct Mesh; struct Mesh;

View File

@@ -38,9 +38,7 @@ extern "C" {
struct AnimData; struct AnimData;
struct BoundBox; struct BoundBox;
struct DerivedMesh;
struct FluidsimSettings; struct FluidsimSettings;
struct GpencilBatchCache;
struct Ipo; struct Ipo;
struct Material; struct Material;
struct Mesh; struct Mesh;

View File

@@ -26,7 +26,6 @@ struct ID; /* DNA_ID.h */
struct ListBase; /* DNA_listBase.h */ struct ListBase; /* DNA_listBase.h */
struct Object; /* DNA_object_types.h */ struct Object; /* DNA_object_types.h */
struct PathResolvedRNA; struct PathResolvedRNA;
struct ReportList;
struct Text; /* defined in DNA_text_types.h */ struct Text; /* defined in DNA_text_types.h */
struct bConstraint; /* DNA_constraint_types.h */ struct bConstraint; /* DNA_constraint_types.h */
struct bConstraintOb; /* DNA_constraint_types.h */ struct bConstraintOb; /* DNA_constraint_types.h */

View File

@@ -27,14 +27,7 @@
extern "C" { extern "C" {
#endif #endif
struct Editing;
struct ImBuf;
struct Main;
struct Mask;
struct Scene; struct Scene;
struct Sequence;
struct StripColorBalance;
struct StripElem;
/* ********************************************************************** /* **********************************************************************
* sequencer.c * sequencer.c

View File

@@ -27,8 +27,6 @@
extern "C" { extern "C" {
#endif #endif
struct ImBuf;
struct Main;
struct Scene; struct Scene;
struct Sequence; struct Sequence;
struct SeqRenderData; struct SeqRenderData;

View File

@@ -27,7 +27,6 @@
extern "C" { extern "C" {
#endif #endif
struct Editing;
struct ImBuf; struct ImBuf;
struct ListBase; struct ListBase;
struct Scene; struct Scene;

View File

@@ -28,7 +28,6 @@ extern "C" {
#endif #endif
struct Scene; struct Scene;
struct anim;
bool sequencer_seq_generates_image(struct Sequence *seq); bool sequencer_seq_generates_image(struct Sequence *seq);
void seq_open_anim_file(struct Scene *scene, struct Sequence *seq, bool openfile); void seq_open_anim_file(struct Scene *scene, struct Sequence *seq, bool openfile);

View File

@@ -23,7 +23,6 @@
#pragma once #pragma once
struct ARegion;
struct ReportList; struct ReportList;
struct wmWindow; struct wmWindow;