Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
11d26ce2
Commit
11d26ce2
authored
Mar 20, 2018
by
Adam Cozzette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused variables in repeated_scalar_container.cc
parent
fcde5186
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
repeated_scalar_container.cc
python/google/protobuf/pyext/repeated_scalar_container.cc
+0
-12
No files found.
python/google/protobuf/pyext/repeated_scalar_container.cc
View file @
11d26ce2
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment