Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
objective-see committed Sep 11, 2024
1 parent 371c9ac commit 27036e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
3 changes: 0 additions & 3 deletions Shared/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,4 @@ BOOL isTranslocated(NSString* path);
//convert es_string_token_t to string
NSString* convertStringToken(es_string_token_t* stringToken);

//get file's inode
unsigned long inodeForPath(NSString *path);

#endif
20 changes: 0 additions & 20 deletions Shared/utilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -1787,26 +1787,6 @@ BOOL isTranslocated(NSString* path)
return string;
}

unsigned long inodeForPath(NSString *path)
{
//stat
struct stat fileStat = {0};

//inode
unsigned long iNode = 0;

if(0 != stat(path.fileSystemRepresentation, &fileStat))
{
goto bail;
}

iNode = fileStat.st_ino;

bail:

return iNode;
}

#ifdef DAEMON_BUILD

//mach time to nanoseconds
Expand Down

0 comments on commit 27036e7

Please sign in to comment.