]> git.saurik.com Git - winterboard.git/commitdiff
Having ported to MSFindSymbol, nlset is obsolete.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 8 Jan 2014 15:45:44 +0000 (07:45 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 8 Jan 2014 15:45:44 +0000 (07:45 -0800)
Library.mm

index 48cfefc53dff26a3140f51d05763df6549492723..f4b400ab290a61dba4cfd1bd17233ea1036d851c 100644 (file)
@@ -2053,15 +2053,6 @@ static void msset(Type_ &function, MSImageRef image, const char *name) {
 #define WBHookSymbol(image, function) \
     msset(function, image, "_" #function)
 
-template <typename Type_>
-static void nlset(Type_ &function, struct nlist *nl, size_t index) {
-    struct nlist &name(nl[index]);
-    uintptr_t value(name.n_value);
-    if ((name.n_desc & N_ARM_THUMB_DEF) != 0)
-        value |= 0x00000001;
-    function = reinterpret_cast<Type_>(value);
-}
-
 template <typename Type_>
 static void dlset(Type_ &function, const char *name) {
     function = reinterpret_cast<Type_>(dlsym(RTLD_DEFAULT, name));