Commit 3f0b542f authored by Just van Rossum's avatar Just van Rossum

removed unused get_short() function

parent ae548860
......@@ -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() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment