Skip to content

Commit 45e331b

Browse files
committed
Remove objc_retainAutoreleasedReturnValue()
- This had been duplicated here and in swift-corelibs-foundation so consolidate it into the main Swift stdlib instead.
1 parent 56f36b6 commit 45e331b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/swift/DispatchStubs.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,3 @@ SOURCE(TIMER)
198198
SOURCE(VNODE)
199199
#endif
200200
SOURCE(WRITE)
201-
202-
// See comment in CFFuntime.c explaining why objc_retainAutoreleasedReturnValue is needed.
203-
extern "C" void swift_retain(void *);
204-
extern "C" void * objc_retainAutoreleasedReturnValue(void *obj) {
205-
if (obj) {
206-
swift_retain(obj);
207-
return obj;
208-
}
209-
else return NULL;
210-
}

0 commit comments

Comments
 (0)