From e4411b230b851ea7dad05445f796dac4406114bc Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 31 May 2009 06:22:29 +0000 Subject: Removed Sandbox Template hashing. --- Cydia.mm | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'Cydia.mm') diff --git a/Cydia.mm b/Cydia.mm index dec5558..e069dd7 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -1051,7 +1051,6 @@ static const int ButtonBarHeight_ = 48; static const float KeyboardTime_ = 0.3f; #define SpringBoard_ "/System/Library/LaunchDaemons/com.apple.SpringBoard.plist" -#define SandboxTemplate_ "/usr/share/sandbox/SandboxTemplate.sb" #define NotifyConfig_ "/etc/notify.conf" static bool Queuing_; @@ -4042,19 +4041,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [delegate_ progressViewIsComplete:self]; - if (Finish_ < 4) { - FileFd file; - if (!file.Open(SandboxTemplate_, FileFd::ReadOnly)) - _error->Discard(); - else { - MMap mmap(file, MMap::ReadOnly); - SHA1Summation sha1; - sha1.Add(reinterpret_cast(mmap.Data()), mmap.Size()); - if (!(sandplate_ == sha1.Result())) - Finish_ = 4; - } - } - if (Finish_ < 4) { FileFd file; if (!file.Open(NotifyConfig_, FileFd::ReadOnly)) @@ -4226,18 +4212,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [delegate_ setStatusBarShowsProgress:YES]; running_ = YES; - { - FileFd file; - if (!file.Open(SandboxTemplate_, FileFd::ReadOnly)) - _error->Discard(); - else { - MMap mmap(file, MMap::ReadOnly); - SHA1Summation sha1; - sha1.Add(reinterpret_cast(mmap.Data()), mmap.Size()); - sandplate_ = sha1.Result(); - } - } - { FileFd file; if (!file.Open(NotifyConfig_, FileFd::ReadOnly)) -- cgit v1.2.3