summaryrefslogtreecommitdiff
path: root/payload_generator/graph_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'payload_generator/graph_utils.h')
-rw-r--r--payload_generator/graph_utils.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/payload_generator/graph_utils.h b/payload_generator/graph_utils.h
index e4692e05..6595e57f 100644
--- a/payload_generator/graph_utils.h
+++ b/payload_generator/graph_utils.h
@@ -35,27 +35,6 @@ void DropWriteBeforeDeps(Vertex::EdgeMap* edge_map);
// For each node N in graph, drop all edges N->|index|.
void DropIncomingEdgesTo(Graph* graph, Vertex::Index index);
-// block must either be the next block in the last extent or a block
-// in the next extent. This function will not handle inserting block
-// into an arbitrary place in the extents.
-void AppendBlockToExtents(std::vector<Extent>* extents, uint64_t block);
-
-// Get/SetElement are intentionally overloaded so that templated functions
-// can accept either type of collection of Extents.
-Extent GetElement(const std::vector<Extent>& collection, size_t index);
-Extent GetElement(
- const google::protobuf::RepeatedPtrField<Extent>& collection,
- size_t index);
-
-template<typename T>
-uint64_t BlocksInExtents(const T& collection) {
- uint64_t ret = 0;
- for (size_t i = 0; i < static_cast<size_t>(collection.size()); ++i) {
- ret += GetElement(collection, i).num_blocks();
- }
- return ret;
-}
-
void DumpGraph(const Graph& graph);
} // namespace graph_utils