Skip to content

Commit

Permalink
remove rebundant useLocalData
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmingzhen committed Sep 1, 2022
1 parent c5a136f commit 7cca981
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion native/cocos/scene/DrawBatch2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ void DrawBatch2D::clear() {
_inputAssembler = nullptr;
_descriptorSet = nullptr;
_model = nullptr;
_useLocalData = nullptr;
_visFlags = 1 << 23;
}

Expand Down
3 changes: 0 additions & 3 deletions native/cocos/scene/DrawBatch2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,13 @@ class DrawBatch2D final : public RefCounted {
inline void setInputAssembler(gfx::InputAssembler *ia) { _inputAssembler = ia; }
inline void setDescriptorSet(gfx::DescriptorSet *descriptorSet) { _descriptorSet = descriptorSet; }
inline void setVisFlags(uint32_t flags) { _visFlags = flags; }
inline void setUseLocalFlag(Node *node) { _useLocalData = node; }
inline void setModel(Model *model) { _model = model; }

inline gfx::InputAssembler *getInputAssembler() const { return _inputAssembler; }
inline gfx::DescriptorSet *getDescriptorSet() const { return _descriptorSet; }
inline uint32_t getVisFlags() const { return _visFlags; }
inline const ccstd::vector<gfx::Shader *> &getShaders() const { return _shaders; }
inline const ccstd::vector<IntrusivePtr<Pass>> &getPasses() const { return _passes; }
inline Node *getUseLocalFlag() const { return _useLocalData; }
inline Model *getModel() const { return _model; }

protected:
Expand All @@ -70,7 +68,6 @@ class DrawBatch2D final : public RefCounted {
ccstd::vector<IntrusivePtr<scene::Pass>> _passes;
ccstd::vector<gfx::Shader *> _shaders;

Node *_useLocalData{nullptr}; // May don`t need
Model *_model{nullptr};

CC_DISALLOW_COPY_MOVE_ASSIGN(DrawBatch2D);
Expand Down

0 comments on commit 7cca981

Please sign in to comment.