Skip to content

Commit

Permalink
rmv useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonchu committed Jan 20, 2024
1 parent a17c710 commit 7f142d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/GameBall/core/actors/common_ball_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ CommonBallActor::CommonBallActor(GameBall *app) : Actor(app) {
}

CommonBallActor::~CommonBallActor() {
/*
if (entity_) {
entity_->SetAlbedoImage(nullptr);
app_->Scene()->DestroyEntity(entity_.get());
entity_ = nullptr;
}
*/
}

void CommonBallActor::Update(float delta_time) {
Expand Down
4 changes: 0 additions & 4 deletions src/GameX/physics/world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ uint64_t World::CreateSphere(float radius, float mass) {
return id;
}

void World::DeleteSphere(uint64_t id) {
spheres_.erase(id);
}

uint64_t World::CreateCube(float side_length, float mass) {
uint64_t id = next_cube_id_++;
cubes_.emplace(id, Cube(mass, side_length));
Expand Down
2 changes: 0 additions & 2 deletions src/GameX/physics/world.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class World {

uint64_t CreateSphere(float radius = 1.0f, float mass = 1.0f);

void DeleteSphere(uint64_t id);

uint64_t CreateCube(float side_length = 1.0f, float mass = 1.0f);

Sphere &GetSphere(uint64_t id);
Expand Down

0 comments on commit 7f142d1

Please sign in to comment.