Redundant Struct Declarations

This commit is contained in:
SuperDude88
2026-09-23 21:47:53 -04:00
parent c0ee29942a
commit aebb9e582b
11 changed files with 7 additions and 17 deletions
@@ -8,7 +8,6 @@
#include "JSystem/J3DGraphBase/J3DVertex.h"
#include "JSystem/J3DGraphBase/J3DMaterial.h"
typedef struct _GXColor GXColor;
class JUTNameTab;
enum J3DMaterialCopyFlag {
-1
View File
@@ -5,7 +5,6 @@
#include "dolphin/mtx/vec.h"
#include "dolphin/types.h"
typedef struct _GXColor GXColor;
class J3DModel;
class J3DAnmVtxColor;
class J3DVertexBuffer;
-2
View File
@@ -8,8 +8,6 @@
#include "dolphin/os/OSAlarm.h"
#include "dolphin/types.h"
typedef struct _GXColor GXColor;
typedef struct _GXRenderModeObj GXRenderModeObj;
class JKRHeap;
typedef void (*JFWDisplayUnkFunc)(void);
@@ -4,8 +4,6 @@
#include "JSystem/JStudio/JStudio/jstudio-control.h"
#include "limits.h"
typedef struct _GXColor GXColor;
namespace JStudio {
namespace data {
enum TEOperationData {
-2
View File
@@ -8,8 +8,6 @@
#include "dolphin/os/OSError.h"
#include "global.h"
typedef struct _GXRenderModeObj GXRenderModeObj;
typedef struct OSContext OSContext;
class JUTDirectPrint;
class JUTExternalFB {
-1
View File
@@ -3,7 +3,6 @@
#include "JSystem/JUtility/JUTVideo.h"
typedef struct _GXRenderModeObj GXRenderModeObj;
class JKRHeap;
class JUTXfb {
-1
View File
@@ -15,7 +15,6 @@ class cCcD_TriAttr;
class cCcD_AabAttr;
class cCcD_CylAttr;
class cCcD_SphAttr;
typedef struct _GXColor GXColor;
enum cCcD_AtSPrm_e {
/* 0x01 */ cCcD_AtSPrm_Set_e = 0x01,
+1 -1
View File
@@ -74,7 +74,7 @@ public:
// void ChkDeleteActorRegist(fopAc_ac_c*) {}
// void DebugDrawPoly(dBgW&) {}
// void Draw() {}
// void DrawPoly(cBgS_PolyInfo&, _GXColor&) {}
// void DrawPoly(cBgS_PolyInfo&, GXColor&) {}
dBgW* GetBgWPointer(cBgS_PolyInfo& i_poly) { return (dBgW*)cBgS::GetBgWPointer(i_poly); }
// void GetPolyCamId(cBgS_PolyInfo&) {}
// void GroundCross(cBgS_GndChk*) {}
+1 -1
View File
@@ -3,6 +3,7 @@
#include "SSystem/SComponent/c_bg_w.h"
#include "SSystem/SComponent/c_sxyz.h"
#include "dolphin/gx/GXStruct.h"
class dBgS_Acch;
class cM3dGPla;
@@ -14,7 +15,6 @@ class dBgS_CrrPos;
class cBgS_PolyInfo;
class fopAc_ac_c;
class dBgS_CaptPoly;
typedef struct _GXColor GXColor;
class dBgW : public cBgW {
public:
+4 -4
View File
@@ -596,11 +596,11 @@ public:
// some calls to these functions define i_color inline which is illegal in C++ for a non-const
// reference parameter - we add these overloads to enable standard compiler compatibility
#if !__MWERKS__
void update(u16 i_segs, f32 i_size, const _GXColor& i_color, u16 i_space, dKy_tevstr_c* i_tevStr) {
update(i_segs, i_size, const_cast<_GXColor&>(i_color), i_space, i_tevStr);
void update(u16 i_segs, f32 i_size, const GXColor& i_color, u16 i_space, dKy_tevstr_c* i_tevStr) {
update(i_segs, i_size, const_cast<GXColor&>(i_color), i_space, i_tevStr);
}
void update(u16 i_segs, const _GXColor& i_color, dKy_tevstr_c* i_tevStr) {
update(i_segs, const_cast<_GXColor&>(i_color), i_tevStr);
void update(u16 i_segs, const GXColor& i_color, dKy_tevstr_c* i_tevStr) {
update(i_segs, const_cast<GXColor&>(i_color), i_tevStr);
}
#endif
+1 -1
View File
@@ -267,7 +267,7 @@ BOOL daObjMkie::Act_c::chk_light() {
/* 00000DF4-00000E84 .text eff_break__Q29daObjMkie5Act_cFv */
void daObjMkie::Act_c::eff_break() {
_GXColor envColor;
GXColor envColor;
envColor.r = (u8)tevStr.mColorC0.r;
envColor.g = (u8)tevStr.mColorC0.g;
envColor.b = (u8)tevStr.mColorC0.b;