Skip to content

Commit

Permalink
Remove some unused mapgen functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytheway committed Apr 28, 2020
1 parent 5dc6e41 commit e63118a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
15 changes: 0 additions & 15 deletions src/mapbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ bool mapbuffer::add_submap( const tripoint &p, submap *sm )
return true;
}

bool mapbuffer::add_submap( int x, int y, int z, submap *sm )
{
return add_submap( tripoint( x, y, z ), sm );
}

bool mapbuffer::add_submap( const tripoint &p, std::unique_ptr<submap> &sm )
{
const bool result = add_submap( p, sm.get() );
Expand All @@ -79,11 +74,6 @@ bool mapbuffer::add_submap( const tripoint &p, std::unique_ptr<submap> &sm )
return result;
}

bool mapbuffer::add_submap( int x, int y, int z, std::unique_ptr<submap> &sm )
{
return add_submap( tripoint( x, y, z ), sm );
}

void mapbuffer::remove_submap( tripoint addr )
{
auto m_target = submaps.find( addr );
Expand All @@ -95,11 +85,6 @@ void mapbuffer::remove_submap( tripoint addr )
submaps.erase( m_target );
}

submap *mapbuffer::lookup_submap( int x, int y, int z )
{
return lookup_submap( tripoint( x, y, z ) );
}

submap *mapbuffer::lookup_submap( const tripoint &p )
{
dbg( D_INFO ) << "mapbuffer::lookup_submap( x[" << p.x << "], y[" << p.y << "], z[" << p.z << "])";
Expand Down
3 changes: 0 additions & 3 deletions src/mapbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ class mapbuffer
* is not stored than and the caller must take of the submap object
* on their own (and properly delete it).
*/
bool add_submap( int x, int y, int z, std::unique_ptr<submap> &sm );
bool add_submap( const tripoint &p, std::unique_ptr<submap> &sm );
bool add_submap( int x, int y, int z, submap *sm );
bool add_submap( const tripoint &p, submap *sm );

/** Get a submap stored in this buffer.
Expand All @@ -54,7 +52,6 @@ class mapbuffer
* and could not be loaded. The mapbuffer takes care of the returned
* submap object, don't delete it on your own.
*/
submap *lookup_submap( int x, int y, int z );
submap *lookup_submap( const tripoint &p );

private:
Expand Down

0 comments on commit e63118a

Please sign in to comment.