[PATCH 12/15] push: remove trivial function
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 29, 2021, 07:44 UTC
- Message-ID
- <20210529074458.1916817-13-felipe.contreras@gmail.com>
- In-Reply-To
- <20210529071115.1908310-1-felipe.contreras@gmail.com>
It's a single line that is used in a single place, and the variable has the same name as the function.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- builtin/push.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/builtin/push.c b/builtin/push.c index 468ccc1067..c220f70795 100644 --- a/builtin/push.c +++ b/builtin/push.c @@ -202,15 +202,10 @@ static const char *get_upstream_ref(struct branch *branch, const char *remote_na return branch->merge[0]->src; } -static int is_workflow_triangular(struct remote *remote) -{ - return remote != remote_get(NULL); -} - static void setup_default_push_refspecs(struct remote *remote) { struct branch *branch; - int triangular = is_workflow_triangular(remote); + int triangular = remote != remote_get(NULL); const char *dst; switch (push_default) {
-- 2.32.0.rc0