push: remove trivial function

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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Felipe Contreras 2021-05-31 14:51:22 -05:00 committed by Junio C Hamano
parent 1afd78fb5c
commit c5b09cf771

View File

@ -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_same_remote(struct remote *remote)
{
return remote == remote_get(NULL);
}
static void setup_default_push_refspecs(struct remote *remote)
{
struct branch *branch;
int same_remote = is_same_remote(remote);
int same_remote = remote == remote_get(NULL);
const char *dst;
switch (push_default) {