From 380b645519c41b2ec48877145c5db63c40cb224d Mon Sep 17 00:00:00 2001 From: kat Date: Fri, 6 Jun 2025 12:48:09 -0400 Subject: Objective-C Processor: Remove vestigial code tracking whether view was backed by a database --- view/sharedcache/core/ObjC.cpp | 4 ++-- view/sharedcache/core/ObjC.h | 2 +- view/sharedcache/core/SharedCacheController.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'view/sharedcache') diff --git a/view/sharedcache/core/ObjC.cpp b/view/sharedcache/core/ObjC.cpp index 98fc42bb..dc3012a5 100644 --- a/view/sharedcache/core/ObjC.cpp +++ b/view/sharedcache/core/ObjC.cpp @@ -187,8 +187,8 @@ Ref
SharedCacheObjCProcessor::GetSectionWithName(const char *sectionNam return nullptr; } -SharedCacheObjCProcessor::SharedCacheObjCProcessor(BinaryView *data, bool isBackedByDatabase, uint64_t imageAddress) - : ObjCProcessor(data, "SharedCache.ObjC", isBackedByDatabase, true) +SharedCacheObjCProcessor::SharedCacheObjCProcessor(BinaryView *data, uint64_t imageAddress) + : ObjCProcessor(data, "SharedCache.ObjC", true) { m_imageAddress = imageAddress; } diff --git a/view/sharedcache/core/ObjC.h b/view/sharedcache/core/ObjC.h index f44323d6..a30b9de4 100644 --- a/view/sharedcache/core/ObjC.h +++ b/view/sharedcache/core/ObjC.h @@ -69,7 +69,7 @@ namespace DSCObjC { BinaryNinja::Ref GetSectionWithName(const char *sectionName) override; public: - SharedCacheObjCProcessor(BinaryNinja::BinaryView* data, bool isBackedByDatabase, uint64_t imageAddress); + SharedCacheObjCProcessor(BinaryNinja::BinaryView* data, uint64_t imageAddress); uint64_t GetObjCRelativeMethodBaseAddress(BinaryNinja::ObjCReader* reader) override; }; diff --git a/view/sharedcache/core/SharedCacheController.cpp b/view/sharedcache/core/SharedCacheController.cpp index ff688f3c..5a5320c3 100644 --- a/view/sharedcache/core/SharedCacheController.cpp +++ b/view/sharedcache/core/SharedCacheController.cpp @@ -227,7 +227,7 @@ bool SharedCacheController::ApplyImage(BinaryView& view, const CacheImage& image view.SetFunctionAnalysisUpdateDisabled(prevDisabledState); // Load objective-c information. - auto objcProcessor = DSCObjC::SharedCacheObjCProcessor(&view, false, image.headerAddress); + auto objcProcessor = DSCObjC::SharedCacheObjCProcessor(&view, image.headerAddress); try { if (m_processObjC) -- cgit v1.3.1