summaryrefslogtreecommitdiffstats
path: root/Lib/ipaddress.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-07-08 11:38:12 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-07-08 11:38:12 (GMT)
commit27396a1807fe5971e7e61a51872a030f6d05b9c9 (patch)
treee6459167cf2acdce25e0f15195676d68bb2f6c16 /Lib/ipaddress.py
parent6803855ecf8044e3e6065dd624891a0179071537 (diff)
downloadcpython-27396a1807fe5971e7e61a51872a030f6d05b9c9.zip
cpython-27396a1807fe5971e7e61a51872a030f6d05b9c9.tar.gz
cpython-27396a1807fe5971e7e61a51872a030f6d05b9c9.tar.bz2
Issue 14814: Remove dead function (noticed by Serhiy Storchaka)
Diffstat (limited to 'Lib/ipaddress.py')
-rw-r--r--Lib/ipaddress.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py
index c0b0cb2..7e6f03f 100644
--- a/Lib/ipaddress.py
+++ b/Lib/ipaddress.py
@@ -183,24 +183,6 @@ def _find_address_range(addresses):
return (first, last)
-def _get_prefix_length(number1, number2, bits):
- """Get the number of leading bits that are same for two numbers.
-
- Args:
- number1: an integer.
- number2: another integer.
- bits: the maximum number of bits to compare.
-
- Returns:
- The number of leading bits that are the same for two numbers.
-
- """
- for i in range(bits):
- if number1 >> i == number2 >> i:
- return bits - i
- return 0
-
-
def _count_righthand_zero_bits(number, bits):
"""Count the number of zero bits on the right hand side.