summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-05-31 06:22:29 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:15 +0000
commite4411b230b851ea7dad05445f796dac4406114bc (patch)
tree49315dde4f89c15975ad00ba84ac8e019e2ed650
parent6a1551179f96bb1e8138adec72b006201aad05f9 (diff)
Removed Sandbox Template hashing.
-rw-r--r--Cydia.mm26
1 files changed, 0 insertions, 26 deletions
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_;
@@ -4044,19 +4043,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
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<uint8_t *>(mmap.Data()), mmap.Size());
- if (!(sandplate_ == sha1.Result()))
- Finish_ = 4;
- }
- }
-
- if (Finish_ < 4) {
- FileFd file;
if (!file.Open(NotifyConfig_, FileFd::ReadOnly))
_error->Discard();
else {
@@ -4228,18 +4214,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
{
FileFd file;
- if (!file.Open(SandboxTemplate_, FileFd::ReadOnly))
- _error->Discard();
- else {
- MMap mmap(file, MMap::ReadOnly);
- SHA1Summation sha1;
- sha1.Add(reinterpret_cast<uint8_t *>(mmap.Data()), mmap.Size());
- sandplate_ = sha1.Result();
- }
- }
-
- {
- FileFd file;
if (!file.Open(NotifyConfig_, FileFd::ReadOnly))
_error->Discard();
else {