summaryrefslogtreecommitdiff
path: root/Include/setobject.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-01-25 16:12:49 -0800
committerRaymond Hettinger <python@rcn.com>2015-01-25 16:12:49 -0800
commit93035c44fd49359e47947fa23aded502d3a4155e (patch)
tree0379a5afd7ba7ca33e719632261bf05dfd5b385f /Include/setobject.h
parentbbd3aa8ece3ed4caf98158086c4599248eb9cddf (diff)
downloadcpython-git-93035c44fd49359e47947fa23aded502d3a4155e.tar.gz
Issue #23119: Simplify setobject by inlining the special case for unicode equality testing.
Diffstat (limited to 'Include/setobject.h')
-rw-r--r--Include/setobject.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/setobject.h b/Include/setobject.h
index 79124d0f6e..a8b8d33ebb 100644
--- a/Include/setobject.h
+++ b/Include/setobject.h
@@ -35,7 +35,7 @@ Invariants for frozensets:
*/
-typedef struct _setobject {
+typedef struct {
PyObject_HEAD
Py_ssize_t fill; /* Number active and dummy entries*/
@@ -53,7 +53,6 @@ typedef struct _setobject {
* runtime null-tests.
*/
setentry *table;
- setentry *(*lookup)(struct _setobject *so, PyObject *key, Py_hash_t hash);
Py_hash_t hash; /* Only used by frozenset objects */
setentry smalltable[PySet_MINSIZE];