Cleanup: remove redundant struct declarations

This commit is contained in:
Campbell Barton 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 PointerRNA;
struct PropertyRNA;
struct ReportList;
struct Scene;
struct bAction;
struct bActionGroup;
struct bContext;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -38,7 +38,6 @@ struct Main;
struct Mesh;
struct Object;
struct Scene;
struct bGPDstroke;
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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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