Skip to content

Commit 2f4a6f2

Browse files
committed
Remove some accidentally committed debug code
1 parent 858f003 commit 2f4a6f2

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Cocoa/Document.m

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,6 @@
1717
#import "GBHexStatusBarRepresenter.h"
1818
#import "NSObject+DefaultsObserver.h"
1919

20-
void *AllocationAt(uintptr_t x)
21-
{
22-
size_t malloc_size(const void *ptr);
23-
uintptr_t t = x & ~7;
24-
for (unsigned i = 0; i < 128; i++) {
25-
size_t size = malloc_size((void *)t);
26-
if (!size) {
27-
t -= 8;
28-
continue;
29-
}
30-
if (x < t + size) {
31-
return (void *)t;
32-
}
33-
return NULL;
34-
}
35-
return NULL;
36-
}
37-
3820
#define likely(x) GB_likely(x)
3921
#define unlikely(x) GB_unlikely(x)
4022

0 commit comments

Comments
 (0)