Skip to content

Commit aa8dc96

Browse files
Greg Pricegitster
authored andcommitted
Documentation: undocument gc'd function graph_release()
graph_release() was removed in 064bfbd. Cut it from the API documentation and a comment. Signed-off-by: Greg Price <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 080cbc1 commit aa8dc96

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Documentation/technical/api-history-graph.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ Core functions:
1111

1212
* `graph_init()` creates a new `struct git_graph`
1313

14-
* `graph_release()` destroys a `struct git_graph`, and frees the memory
15-
associated with it.
16-
1714
* `graph_update()` moves the graph to a new commit.
1815

1916
* `graph_next_line()` outputs the next line of the graph into a strbuf. It
@@ -134,8 +131,6 @@ while ((commit = get_revision(opts)) != NULL) {
134131
putchar(opts->diffopt.line_termination);
135132
}
136133
}
137-
138-
graph_release(graph);
139134
------------
140135

141136
Sample output

graph.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ struct git_graph;
66

77
/*
88
* Create a new struct git_graph.
9-
* The graph should be freed with graph_release() when no longer needed.
109
*/
1110
struct git_graph *graph_init(struct rev_info *opt);
1211

0 commit comments

Comments
 (0)