Remove useless use of BytePointer
Change-Id: Ic813057de9575b2ec26850d9432746f904927875 Reviewed-on: https://review.haiku-os.org/c/1606 Reviewed-by: Stephan Aßmus <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
12d046d024
commit
bec70b1ec8
@@ -8,7 +8,6 @@
|
|||||||
#define OBJECT_CACHE_H
|
#define OBJECT_CACHE_H
|
||||||
|
|
||||||
|
|
||||||
#include <BytePointer.h>
|
|
||||||
#include <condition_variable.h>
|
#include <condition_variable.h>
|
||||||
#include <lock.h>
|
#include <lock.h>
|
||||||
#include <slab/ObjectDepot.h>
|
#include <slab/ObjectDepot.h>
|
||||||
@@ -141,9 +140,8 @@ link_to_object(object_link* link, size_t objectSize)
|
|||||||
static inline object_link*
|
static inline object_link*
|
||||||
object_to_link(void* object, size_t objectSize)
|
object_to_link(void* object, size_t objectSize)
|
||||||
{
|
{
|
||||||
BytePointer<object_link> pointer((uint8*)object
|
return (object_link*)(((uint8*)object)
|
||||||
+ (objectSize - sizeof(object_link)));
|
+ (objectSize - sizeof(object_link)));
|
||||||
return &pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user