summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-12-31 15:47:42 (GMT)
committerJust van Rossum <just@letterror.com>2002-12-31 15:47:42 (GMT)
commit3f0b542f2559869715e25164e92e7255220a0ea3 (patch)
tree04e87bae67deebdf8fce7d24db35b481fdacea07 /Modules
parentae5488609aaa6564a6164771cde915cf3e3e472f (diff)
downloadcpython-3f0b542f2559869715e25164e92e7255220a0ea3.zip
cpython-3f0b542f2559869715e25164e92e7255220a0ea3.tar.gz
cpython-3f0b542f2559869715e25164e92e7255220a0ea3.tar.bz2
removed unused get_short() function
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zipimport.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 11b5dd3..f3f5245 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -602,20 +602,6 @@ static PyTypeObject ZipImporter_Type = {
/* implementation */
-/* Given a buffer, return the short that is represented by the first
- 2 bytes, encoded as little endian. This partially reimplements
- marshal.c:r_short(). */
-static int
-get_short(unsigned char *buf)
-{
- short x;
- x = buf[0];
- x |= buf[1] << 8;
- /* Sign-extension, in case short greater than 16 bits */
- x |= -(x & 0x8000);
- return x;
-}
-
/* Given a buffer, return the long that is represented by the first
4 bytes, encoded as little endian. This partially reimplements
marshal.c:r_long() */