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>

Felipe Contreras committed May 31, 2021 at 14:51 UTC c5b09cf771ea3c340335aeff501ebec342f78aa4
1 file changed +1 -6
builtin/push.c
+1 -6
@@ -202,15 +202,10 @@ static const char *get_upstream_ref(struct branch *branch, const char *remote_na
202 return branch->merge[0]->src;
203 }
204
205 -static int is_same_remote(struct remote *remote)
206 -{
207 - return remote == remote_get(NULL);
208 -}
209 -
205 static void setup_default_push_refspecs(struct remote *remote)
206 {
207 struct branch *branch;
213 - int same_remote = is_same_remote(remote);
208 + int same_remote = remote == remote_get(NULL);
209 const char *dst;
210
211 switch (push_default) {