From f98654de9cc5d294fef949028a3e4de2e536eb44 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 24 Nov 2010 20:17:25 +0000 Subject: [PATCH] Remove StringSourceProvider::source hack. --- LockScreen.mm | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/LockScreen.mm b/LockScreen.mm index 30286f0..868e2a2 100644 --- a/LockScreen.mm +++ b/LockScreen.mm @@ -1025,13 +1025,6 @@ bool CYWeakHell() { static WebCore::String *string; -MSHook(const WebCore::String &, _ZNK7WebCore20StringSourceProvider6sourceEv, void *_this) { - _trace(); - const WebCore::String &source(__ZNK7WebCore20StringSourceProvider6sourceEv(_this)); - string = const_cast(&source); - return source; -} - // iOS 2.x MSHook(State, _ZN7WebCore13HTMLTokenizer15scriptExecutionERKNS_6StringENS0_5StateES3_i, void *_this, const WebCore::String &string, State state, const WebCore::String &url, int line) { _trace(); @@ -1405,10 +1398,6 @@ static void dlset(Type_ &function, const char *name) { MSHookFunction(_ZN7WebCore12CachedScript6scriptEv, MSHake(_ZN7WebCore12CachedScript6scriptEv)); } - /*const WebCore::String &(*_ZNK7WebCore20StringSourceProvider6sourceEv)(void *); - nlset(_ZNK7WebCore20StringSourceProvider6sourceEv, nl, 3); - MSHookFunction(_ZNK7WebCore20StringSourceProvider6sourceEv, MSHake(_ZNK7WebCore20StringSourceProvider6sourceEv));*/ - State (*_ZN7WebCore13HTMLTokenizer15scriptExecutionERKNS_6StringENS0_5StateES3_i)(void *, const WebCore::String &, State, const WebCore::String &, int); nlset(_ZN7WebCore13HTMLTokenizer15scriptExecutionERKNS_6StringENS0_5StateES3_i, nl, 4); if (_ZN7WebCore13HTMLTokenizer15scriptExecutionERKNS_6StringENS0_5StateES3_i != NULL) -- 2.45.2