Remove dead code.
This commit is contained in:
parent
bbd0239ece
commit
9a0877379c
@ -257,7 +257,7 @@ std::size_t Prepare::WriteContractedGraph(unsigned max_node_id,
|
|||||||
SimpleLogger().Write() << "Building node array";
|
SimpleLogger().Write() << "Building node array";
|
||||||
StaticGraph<EdgeData>::EdgeIterator edge = 0;
|
StaticGraph<EdgeData>::EdgeIterator edge = 0;
|
||||||
StaticGraph<EdgeData>::EdgeIterator position = 0;
|
StaticGraph<EdgeData>::EdgeIterator position = 0;
|
||||||
StaticGraph<EdgeData>::EdgeIterator last_edge = edge;
|
StaticGraph<EdgeData>::EdgeIterator last_edge;
|
||||||
|
|
||||||
// initializing 'first_edge'-field of nodes:
|
// initializing 'first_edge'-field of nodes:
|
||||||
for (const auto node : osrm::irange(0u, max_used_node_id+1))
|
for (const auto node : osrm::irange(0u, max_used_node_id+1))
|
||||||
@ -295,7 +295,6 @@ std::size_t Prepare::WriteContractedGraph(unsigned max_node_id,
|
|||||||
|
|
||||||
// serialize all edges
|
// serialize all edges
|
||||||
SimpleLogger().Write() << "Building edge array";
|
SimpleLogger().Write() << "Building edge array";
|
||||||
edge = 0;
|
|
||||||
int number_of_used_edges = 0;
|
int number_of_used_edges = 0;
|
||||||
|
|
||||||
StaticGraph<EdgeData>::EdgeArrayEntry current_edge;
|
StaticGraph<EdgeData>::EdgeArrayEntry current_edge;
|
||||||
|
@ -230,8 +230,7 @@ int main(const int argc, const char *argv[])
|
|||||||
// Allocate a memory layout in shared memory, deallocate previous
|
// Allocate a memory layout in shared memory, deallocate previous
|
||||||
SharedMemory *layout_memory =
|
SharedMemory *layout_memory =
|
||||||
SharedMemoryFactory::Get(layout_region, sizeof(SharedDataLayout));
|
SharedMemoryFactory::Get(layout_region, sizeof(SharedDataLayout));
|
||||||
SharedDataLayout *shared_layout_ptr = static_cast<SharedDataLayout *>(layout_memory->Ptr());
|
SharedDataLayout *shared_layout_ptr = new (layout_memory->Ptr()) SharedDataLayout();
|
||||||
shared_layout_ptr = new (layout_memory->Ptr()) SharedDataLayout();
|
|
||||||
|
|
||||||
shared_layout_ptr->SetBlockSize<char>(SharedDataLayout::FILE_INDEX_PATH,
|
shared_layout_ptr->SetBlockSize<char>(SharedDataLayout::FILE_INDEX_PATH,
|
||||||
file_index_path.length() + 1);
|
file_index_path.length() + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user