summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-08-02 13:18:07 +0100
committerGitHub <noreply@github.com>2019-08-02 13:18:07 +0100
commitf627ba6c7f4b40d533cc127f408cbce8353697ed (patch)
tree5e1cbaf2d5bb9d9d5c425c3af6773a5397366420
parent24c491ed00a53f59249e1744a5c6cde1d3f473d4 (diff)
parente23c0b18e68f1912c5c6e55b216967c7d257a92d (diff)
downloadlibgit2-f627ba6c7f4b40d533cc127f408cbce8353697ed.tar.gz
Merge pull request #5197 from pks-t/pks/remote-ifdeffed-block
remote: remove unused block of code
-rw-r--r--src/remote.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/remote.c b/src/remote.c
index 8e8dda8c4..19aa45d0b 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -136,35 +136,6 @@ cleanup:
return 0;
}
-#if 0
-/* We could export this as a helper */
-static int get_check_cert(int *out, git_repository *repo)
-{
- git_config *cfg;
- const char *val;
- int error = 0;
-
- assert(out && repo);
-
- /* By default, we *DO* want to verify the certificate. */
- *out = 1;
-
- /* Go through the possible sources for SSL verification settings, from
- * most specific to least specific. */
-
- /* GIT_SSL_NO_VERIFY environment variable */
- if ((val = p_getenv("GIT_SSL_NO_VERIFY")) != NULL)
- return git_config_parse_bool(out, val);
-
- /* http.sslVerify config setting */
- if ((error = git_repository_config__weakptr(&cfg, repo)) < 0)
- return error;
-
- *out = git_config__get_bool_force(cfg, "http.sslverify", 1);
- return 0;
-}
-#endif
-
static int canonicalize_url(git_buf *out, const char *in)
{
if (in == NULL || strlen(in) == 0) {