Patchwork [6,of,6] sslutil: remove sslkwargs() (API)

login
register
mail settings
Submitter Gregory Szorc
Date May 26, 2016, 3:03 a.m.
Message ID <e342fef5504832a8c412.1464231835@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/15217/
State Accepted
Headers show

Comments

Gregory Szorc - May 26, 2016, 3:03 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1464231451 25200
#      Wed May 25 19:57:31 2016 -0700
# Node ID e342fef5504832a8c41200fbb0c524fdd41d75cf
# Parent  80c4bffa1d3713f43561689338210465c6b85b35
sslutil: remove sslkwargs() (API)

It is now unused.

Patch

diff --git a/mercurial/sslutil.py b/mercurial/sslutil.py
--- a/mercurial/sslutil.py
+++ b/mercurial/sslutil.py
@@ -280,19 +280,16 @@  def _defaultcacerts():
     """return path to default CA certificates or None."""
     if _plainapplepython():
         dummycert = os.path.join(os.path.dirname(__file__), 'dummycert.pem')
         if os.path.exists(dummycert):
             return dummycert
 
     return None
 
-def sslkwargs(ui, host):
-    return {}
-
 def validatesocket(sock, strict=False):
     """Validate a socket meets security requiremnets.
 
     The passed socket must have been created with ``wrapsocket()``.
     """
     host = sock._hgstate['hostname']
     ui = sock._hgstate['ui']