Commit Diff


commit - 6ede4e7aa51a4364ca5b52614fa38a281cc0e736
commit + d7b086402f1b24848c73daf8da5b491b57f3b94f
blob - 1e632003ebf151a604f80a4348a4ecd9b3f2c1f3
blob + a8916cee4b822f649ed2b531aad2e0550f11f4d5
--- include/got_commit_graph.h
+++ include/got_commit_graph.h
@@ -27,6 +27,3 @@ const struct got_error *got_commit_graph_iter_start(
     struct got_commit_graph *, struct got_object_id *);
 const struct got_error *got_commit_graph_iter_next(struct got_commit_object **,
     struct got_object_id **, struct got_commit_graph *);
-
-const struct got_commit_object *got_commit_graph_get_commit(
-    struct got_commit_graph *, struct got_object_id *);
blob - 2743d3872f876458a7e854774c25fa8cdcd0417a
blob + 1f3c145bd98fbbabd9e9aa631f3de0c12ad5fae4
--- lib/commit_graph.c
+++ lib/commit_graph.c
@@ -493,12 +493,3 @@ got_commit_graph_iter_next(struct got_commit_object **
 	graph->iter_node = node;
 	return NULL;
 }
-
-const struct got_commit_object *
-got_commit_graph_get_commit(struct got_commit_graph *graph,
-    struct got_object_id *id)
-{
-	struct got_commit_graph_node *node;
-	node = got_object_idset_get(graph->node_ids, id);
-	return node ? node->commit : NULL;
-}