diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-07-04 15:09:54 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-07-04 15:09:54 +0000 |
commit | 0e4d43f4593cda055d15641e0edce424b0b84fab (patch) | |
tree | 47d5298da37d1a43c1b27ccdedd36721073da2ec /src/interfaces/jdbc/org/postgresql/PG_Stream.java | |
parent | 5f5f8b97e2242255de436a2247b7face91a23c77 (diff) | |
download | postgresql-0e4d43f4593cda055d15641e0edce424b0b84fab.tar.gz |
The attached patch removes some old and dead code (and some related
misleading comments) from the PG_Stream class.
Anders Bengtsson
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/PG_Stream.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/PG_Stream.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/PG_Stream.java b/src/interfaces/jdbc/org/postgresql/PG_Stream.java index 5c8a3c6e0b..fb97d3a24b 100644 --- a/src/interfaces/jdbc/org/postgresql/PG_Stream.java +++ b/src/interfaces/jdbc/org/postgresql/PG_Stream.java @@ -56,12 +56,6 @@ public class PG_Stream */ public void SendChar(int val) throws IOException { - // Original code - //byte b[] = new byte[1]; - //b[0] = (byte)val; - //pg_output.write(b); - - // Optimised version by Sverre H. Huseby Aug 22 1999 Applied Sep 13 1999 pg_output.write((byte)val); } @@ -85,30 +79,6 @@ public class PG_Stream } /** - * Sends an integer to the back end in reverse order. - * - * This is required when the backend uses the routines in the - * src/backend/libpq/pqcomprim.c module. - * - * As time goes by, this should become obsolete. - * - * @param val the integer to be sent - * @param siz the length of the integer in bytes (size of structure) - * @exception IOException if an I/O error occurs - */ - public void SendIntegerReverse(int val, int siz) throws IOException - { - byte[] buf = bytePoolDim1.allocByte(siz); - int p=0; - while (siz-- > 0) - { - buf[p++] = (byte)(val & 0xff); - val >>= 8; - } - Send(buf); - } - - /** * Send an array of bytes to the backend * * @param buf The array of bytes to be sent @@ -156,17 +126,6 @@ public class PG_Stream } /** - * Sends a packet, prefixed with the packet's length - * @param buf buffer to send - * @exception SQLException if an I/O Error returns - */ - public void SendPacket(byte[] buf) throws IOException - { - SendInteger(buf.length+4,4); - Send(buf); - } - - /** * Receives a single character from the backend * * @return the character received |