Use fewer pointers refactor: get rid of visible_world_ in drivenengine. The world is now fully owned by the drivenengine.
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
|
||||
class LpxClient : public DrivenEngine {
|
||||
public:
|
||||
UniqueWorld world_;
|
||||
int64_t actor_id_;
|
||||
InvocationQueue unack_;
|
||||
SharedChannel channel_;
|
||||
PrintChanneler print_channeler_;
|
||||
@@ -47,9 +45,6 @@ public:
|
||||
// Clear the unack command queue.
|
||||
unack_.clear();
|
||||
|
||||
// Export stuff to the graphics engine.
|
||||
set_visible_world_and_actor(world_.get(), actor_id_);
|
||||
|
||||
// Reset the print channeler
|
||||
print_channeler_.reset();
|
||||
|
||||
@@ -73,9 +68,6 @@ public:
|
||||
// Clear the unack command queue.
|
||||
unack_.clear();
|
||||
|
||||
// Export stuff to the graphics engine.
|
||||
set_visible_world_and_actor(world_.get(), actor_id_);
|
||||
|
||||
// Reset the print channeler
|
||||
print_channeler_.reset();
|
||||
|
||||
@@ -139,7 +131,6 @@ public:
|
||||
util::dprint("Actor ID changing: ", actor_id);
|
||||
print_channeler_.reset();
|
||||
actor_id_ = actor_id;
|
||||
set_visible_world_and_actor(world_.get(), actor_id_);
|
||||
}
|
||||
|
||||
void receive_ack_from_server(StreamBuffer *sb) {
|
||||
|
||||
Reference in New Issue
Block a user