summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-05-06 18:12:50 +0800
committerJames Henstridge <james@jamesh.id.au>2008-05-06 18:12:50 +0800
commitee235478bddd099c9ec76e1f44ebfea595e23c80 (patch)
tree9198bf17bee0132c0d7eb9e06c35be5053c71303
parent9d20f5c09c486805484ae9a3c049e0a67ec52818 (diff)
downloadpsycopg2-ee235478bddd099c9ec76e1f44ebfea595e23c80.tar.gz
* psycopg/lobject.h (lobjectObject): remove "mode" struct member,
since it was unused.
-rw-r--r--ChangeLog3
-rw-r--r--psycopg/lobject.h2
-rw-r--r--psycopg/lobject_int.c1
3 files changed, 3 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c59d11..32f4763 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2008-05-06 James Henstridge <james@jamesh.id.au>
+ * psycopg/lobject.h (lobjectObject): remove "mode" struct member,
+ since it was unused.
+
* psycopg/lobject_*.c: replace uses of the closed struct member,
and change the Python level attribute to a getset.
diff --git a/psycopg/lobject.h b/psycopg/lobject.h
index b954696..52d3276 100644
--- a/psycopg/lobject.h
+++ b/psycopg/lobject.h
@@ -42,8 +42,6 @@ typedef struct {
long int mark; /* copied from conn->mark */
const char *smode; /* string mode if lobject was opened */
- int mode; /* numeric mode, tells if lobject was opened */
-
int fd; /* the file descriptor for file-like ops */
Oid oid; /* the oid for this lobject */
diff --git a/psycopg/lobject_int.c b/psycopg/lobject_int.c
index cd110ee..cdca5d2 100644
--- a/psycopg/lobject_int.c
+++ b/psycopg/lobject_int.c
@@ -97,7 +97,6 @@ lobject_open(lobjectObject *self, connectionObject *conn,
}
}
/* set the mode for future reference */
- self->mode = mode;
switch (mode) {
case -1:
self->smode = "n"; break;