Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing unnecessary log statements from wipe function. #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions IMSHandler/IMSMemoryManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ inline BOOL handleType(NSObject* obj, NSString* pass, traversalFunc f) {
}
}

NSLog(@"Done with type handler %@\n\n", ret?@"YES":@"NO");
return ret;
}

Expand All @@ -180,14 +179,10 @@ extern inline BOOL wipeWrapper(NSObject* obj, NSString* ignore) {

// Return NO if wipe failed
extern inline BOOL wipe(NSObject* obj) {
NSLog(@"Object pointer: %p", obj);
if(handleType(obj, @"", &wipeWrapper) == YES) {
if (getSize(obj) > 0){
NSLog(@"WIPE OBJ");
memset(getStart(obj), 0, getSize(obj));
}
else
NSLog(@"WIPE: Unsupported Object.");
}
return YES;
}
Expand Down