Skip to content

Commit

Permalink
minor cleanup of swizzler
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarbarev committed May 30, 2014
1 parent 09403e4 commit 475d041
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Source/Utils/Swizzle/TyphoonSwizzler.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ - (BOOL)swizzleMethod:(SEL)origSel withMethod:(SEL)altSel onClass:(Class)pClass
}
return NO;
}

const char *encoding;
if (!origMethod) {
encoding = method_getTypeEncoding(altMethod);
}
if (!altSel) {
encoding = method_getTypeEncoding(origMethod);
}

class_addMethod(pClass, origSel, class_getMethodImplementation(pClass, origSel), method_getTypeEncoding(altMethod));
class_addMethod(pClass, altSel, class_getMethodImplementation(pClass, altSel), method_getTypeEncoding(origMethod));
Expand Down

0 comments on commit 475d041

Please sign in to comment.