aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@google.com>2018-03-20 12:12:30 -0700
committerAdam Cozzette <acozzette@google.com>2018-03-20 14:44:30 -0700
commit11d26ce24c90a6cf2544f71e09970513550ef6c6 (patch)
treef7af70679c9f4cb6f9cf4364d566e30e1b3e02e4 /python
parentfcde518699fb4d9cc27bff3f34c3a85e21d54a67 (diff)
downloadprotobuf-11d26ce24c90a6cf2544f71e09970513550ef6c6.tar.gz
protobuf-11d26ce24c90a6cf2544f71e09970513550ef6c6.tar.bz2
protobuf-11d26ce24c90a6cf2544f71e09970513550ef6c6.zip
Removed unused variables in repeated_scalar_container.cc
Diffstat (limited to 'python')
-rw-r--r--python/google/protobuf/pyext/repeated_scalar_container.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/python/google/protobuf/pyext/repeated_scalar_container.cc b/python/google/protobuf/pyext/repeated_scalar_container.cc
index 1517e654..de3b6e14 100644
--- a/python/google/protobuf/pyext/repeated_scalar_container.cc
+++ b/python/google/protobuf/pyext/repeated_scalar_container.cc
@@ -276,9 +276,6 @@ static PyObject* Item(PyObject* pself, Py_ssize_t index) {
}
static PyObject* Subscript(PyObject* pself, PyObject* slice) {
- RepeatedScalarContainer* self =
- reinterpret_cast<RepeatedScalarContainer*>(pself);
-
Py_ssize_t from;
Py_ssize_t to;
Py_ssize_t step;
@@ -542,9 +539,6 @@ static PyObject* Insert(PyObject* pself, PyObject* args) {
}
static PyObject* Remove(PyObject* pself, PyObject* value) {
- RepeatedScalarContainer* self =
- reinterpret_cast<RepeatedScalarContainer*>(pself);
-
Py_ssize_t match_index = -1;
for (Py_ssize_t i = 0; i < Len(pself); ++i) {
ScopedPyObjectPtr elem(Item(pself, i));
@@ -568,9 +562,6 @@ static PyObject* ExtendMethod(PyObject* self, PyObject* value) {
}
static PyObject* RichCompare(PyObject* pself, PyObject* other, int opid) {
- RepeatedScalarContainer* self =
- reinterpret_cast<RepeatedScalarContainer*>(pself);
-
if (opid != Py_EQ && opid != Py_NE) {
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
@@ -661,9 +652,6 @@ static PyObject* Pop(PyObject* pself, PyObject* args) {
}
static PyObject* ToStr(PyObject* pself) {
- RepeatedScalarContainer* self =
- reinterpret_cast<RepeatedScalarContainer*>(pself);
-
ScopedPyObjectPtr full_slice(PySlice_New(NULL, NULL, NULL));
if (full_slice == NULL) {
return NULL;