Loading...
libkern/c++/OSBoolean.cpp xnu-201.5 xnu-792.10.96
--- xnu/xnu-201.5/libkern/c++/OSBoolean.cpp
+++ xnu/xnu-792.10.96/libkern/c++/OSBoolean.cpp
@@ -76,15 +76,12 @@
     assert(false);
 }
 
+void OSBoolean::taggedRetain(const void *tag) const { }
+void OSBoolean::taggedRelease(const void *tag, const int when) const { }
+
 OSBoolean *OSBoolean::withBoolean(bool inValue)
 {
-    if (inValue) {
-        kOSBooleanTrue->retain();
-        return kOSBooleanTrue;
-    } else {
-        kOSBooleanFalse->retain();
-        return kOSBooleanFalse;
-    }
+    return (inValue) ? kOSBooleanTrue : kOSBooleanFalse;
 }
 
 bool OSBoolean::isTrue() const { return value; }