Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
277f0c23
Commit
277f0c23
authored
Sep 08, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete manual cypclass refcounting from unit tests with templated code
parent
031ddf9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
tests/run/cypclass_acthon.pyx
tests/run/cypclass_acthon.pyx
+0
-2
tests/run/cypclass_subscript_exceptions_checked_result.pyx
tests/run/cypclass_subscript_exceptions_checked_result.pyx
+0
-4
No files found.
tests/run/cypclass_acthon.pyx
View file @
277f0c23
...
...
@@ -30,7 +30,6 @@ cdef cypclass BasicQueue(ActhonQueueInterface) checklock:
self
.
_queue
.
push_back
(
message
)
if
message
.
_sync_method
is
not
NULL
:
message
.
_sync_method
.
insertActivity
(
message
)
Cy_INCREF
(
message
)
bint
activate
(
self
):
cdef
bint
one_message_processed
...
...
@@ -52,7 +51,6 @@ cdef cypclass BasicQueue(ActhonQueueInterface) checklock:
else
:
self
.
_queue
.
push_back
(
next_message
)
# Don't forget to incref to avoid premature deallocation
Cy_INCREF
(
next_message
)
return
one_message_processed
cdef
cypclass
NoneResult
(
ActhonResultInterface
)
checklock
:
...
...
tests/run/cypclass_subscript_exceptions_checked_result.pyx
View file @
277f0c23
...
...
@@ -23,8 +23,6 @@ cdef cypclass SingleInsertionDict[K, V]:
end
=
self
.
_indices
.
end
()
if
it
==
end
:
Cy_INCREF
(
key
)
Cy_INCREF
(
value
)
self
.
_indices
[
key
]
=
self
.
_items
.
size
()
self
.
_items
.
push_back
((
key
,
value
))
else
:
...
...
@@ -46,8 +44,6 @@ cdef cypclass SingleInsertionDict[K, V]:
if
it
!=
end
:
index
=
deref
(
it
).
second
Cy_DECREF
(
self
.
_items
[
index
][
0
])
Cy_DECREF
(
self
.
_items
[
index
][
1
])
self
.
_indices
.
erase
(
it
)
if
index
<
self
.
_items
.
size
()
-
1
:
self
.
_items
[
index
]
=
self
.
_items
[
self
.
_indices
.
size
()
-
1
]
...
...
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