mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Runtime: Remove retainCount entry points.
They're only used for testing and ObjC interop, so don't need to be exported from the runtime.
This commit is contained in:
@@ -309,14 +309,6 @@ static void _swift_release_n_(HeapObject *object, uint32_t n) {
|
||||
}
|
||||
auto swift::_swift_release_n = _swift_release_n_;
|
||||
|
||||
size_t swift::swift_retainCount(HeapObject *object) {
|
||||
return object->refCount.getCount();
|
||||
}
|
||||
|
||||
size_t swift::swift_unownedRetainCount(HeapObject *object) {
|
||||
return object->weakRefCount.getCount();
|
||||
}
|
||||
|
||||
void swift::swift_unownedRetain(HeapObject *object) {
|
||||
if (!object) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user