]> git.saurik.com Git - cydget.git/commitdiff
Remove extraneous calls to _trace().
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 28 Mar 2011 15:31:25 +0000 (15:31 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 28 Mar 2011 15:31:25 +0000 (15:31 +0000)
LockScreen.mm

index 94cb18f7ed62cb4252eb9c1f4034be3841607691..f82f7e71a9f294caf56b97da0737ffca96283671 100644 (file)
@@ -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<WebCore::String *>(&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<int *>(source) + 3);