From: Jay Freeman (saurik) Date: Mon, 28 Mar 2011 15:31:25 +0000 (+0000) Subject: Remove extraneous calls to _trace(). X-Git-Tag: v0.9.4000~17 X-Git-Url: https://git.saurik.com/cydget.git/commitdiff_plain/531e71152335ebca372acc72afaa3789f3ddbd87 Remove extraneous calls to _trace(). --- diff --git a/LockScreen.mm b/LockScreen.mm index 94cb18f..f82f7e7 100644 --- a/LockScreen.mm +++ b/LockScreen.mm @@ -435,12 +435,10 @@ static bool StringEquals(const WebCore::String &string, const char *value) { static bool cycript_; MSHook(bool, _ZN7WebCore16MIMETypeRegistry29isSupportedJavaScriptMIMETypeERKNS_6StringE, const WebCore::String &mime) { - _trace(); if (!StringEquals(mime, "text/cycript")) { cycript_ = false; return __ZN7WebCore16MIMETypeRegistry29isSupportedJavaScriptMIMETypeERKNS_6StringE(mime); } - _trace(); static void *handle(dlopen("/usr/lib/libcycript.dylib", RTLD_LAZY | RTLD_GLOBAL)); if (handle == NULL) @@ -484,7 +482,6 @@ static void Cycriptify(const WebCore::String &source, int *psize = NULL) { size_t length; if (!StringGet(source, data, length)) { - _trace(); return; } @@ -535,7 +532,6 @@ static WebCore::String *string; // iOS 2.x MSHook(State, _ZN7WebCore13HTMLTokenizer15scriptExecutionERKNS_6StringENS0_5StateES3_i, void *_this, const WebCore::String &string, State state, const WebCore::String &url, int line) { - _trace(); Cycriptify(string); return __ZN7WebCore13HTMLTokenizer15scriptExecutionERKNS_6StringENS0_5StateES3_i(_this, string, state, url, line); } @@ -564,14 +560,12 @@ MSHook(void, _ZN3JSC6Parser5parseEPNS_12JSGlobalDataEPiPNS_7UStringE, JSC::Sourc // iOS 4.x cdata MSHook(void, _ZN7WebCore16ScriptSourceCodeC2ERKNS_6StringERKNS_4KURLEi, void *_this, const WebCore::String &source, const WebCore::KURL &url, int line) { - _trace(); Cycriptify(source); return __ZN7WebCore16ScriptSourceCodeC2ERKNS_6StringERKNS_4KURLEi(_this, source, url, line); } // iOS 4.x @src= MSHook(const WebCore::String &, _ZN7WebCore12CachedScript6scriptEv, void *_this) { - _trace(); const WebCore::String &script(__ZN7WebCore12CachedScript6scriptEv(_this)); string = const_cast(&script); Log(script); @@ -580,7 +574,6 @@ MSHook(const WebCore::String &, _ZN7WebCore12CachedScript6scriptEv, void *_this) // iOS 4.x @src= MSHook(State, _ZN7WebCore13HTMLTokenizer15scriptExecutionERKNS_16ScriptSourceCodeENS0_5StateE, void *_this, void *source, State state) { - _trace(); if (string != NULL) { if (iOS4) Cycriptify(*string, reinterpret_cast(source) + 3);