Skip to content

Commit c5b09cf

Browse files
felipecgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1afd78f commit c5b09cf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

builtin/push.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,10 @@ static const char *get_upstream_ref(struct branch *branch, const char *remote_na
202202
return branch->merge[0]->src;
203203
}
204204

205-
static int is_same_remote(struct remote *remote)
206-
{
207-
return remote == remote_get(NULL);
208-
}
209-
210205
static void setup_default_push_refspecs(struct remote *remote)
211206
{
212207
struct branch *branch;
213-
int same_remote = is_same_remote(remote);
208+
int same_remote = remote == remote_get(NULL);
214209
const char *dst;
215210

216211
switch (push_default) {

0 commit comments

Comments
 (0)