Skip to content

Commit f627ba6

Browse files
authored
Merge pull request libgit2#5197 from pks-t/pks/remote-ifdeffed-block
remote: remove unused block of code
2 parents 24c491e + e23c0b1 commit f627ba6

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/remote.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -136,35 +136,6 @@ static int write_add_refspec(git_repository *repo, const char *name, const char
136136
return 0;
137137
}
138138

139-
#if 0
140-
/* We could export this as a helper */
141-
static int get_check_cert(int *out, git_repository *repo)
142-
{
143-
git_config *cfg;
144-
const char *val;
145-
int error = 0;
146-
147-
assert(out && repo);
148-
149-
/* By default, we *DO* want to verify the certificate. */
150-
*out = 1;
151-
152-
/* Go through the possible sources for SSL verification settings, from
153-
* most specific to least specific. */
154-
155-
/* GIT_SSL_NO_VERIFY environment variable */
156-
if ((val = p_getenv("GIT_SSL_NO_VERIFY")) != NULL)
157-
return git_config_parse_bool(out, val);
158-
159-
/* http.sslVerify config setting */
160-
if ((error = git_repository_config__weakptr(&cfg, repo)) < 0)
161-
return error;
162-
163-
*out = git_config__get_bool_force(cfg, "http.sslverify", 1);
164-
return 0;
165-
}
166-
#endif
167-
168139
static int canonicalize_url(git_buf *out, const char *in)
169140
{
170141
if (in == NULL || strlen(in) == 0) {

0 commit comments

Comments
 (0)