Commit d7b086402f1b24848c73daf8da5b491b57f3b94f

Stefan Sperling 2018-06-11T02:27:01

remove unused function

diff --git a/include/got_commit_graph.h b/include/got_commit_graph.h
index 1e63200..a8916ce 100644
--- a/include/got_commit_graph.h
+++ b/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 *);
diff --git a/lib/commit_graph.c b/lib/commit_graph.c
index 2743d38..1f3c145 100644
--- a/lib/commit_graph.c
+++ b/lib/commit_graph.c
@@ -493,12 +493,3 @@ got_commit_graph_iter_next(struct got_commit_object **commit,
 	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;
-}