summaryrefslogtreecommitdiff
path: root/view/sharedcache/ui/SharedCacheBDNotifications.cpp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-03-10 11:05:40 -0400
committerMason Reed <mason@vector35.com>2025-04-02 05:36:54 -0400
commit25cc02431b61097b2adfc2fbc493b648b0300c3b (patch)
treea79d9c4f4f67234d3bf9bda413e8608f479a4cc8 /view/sharedcache/ui/SharedCacheBDNotifications.cpp
parentfa85bf28502286c4821427c5d0ed91a7ed46f8f6 (diff)
[SharedCache] Refactor Shared Cache
In absence of a better name, this commit refactors the shared cache code.
Diffstat (limited to 'view/sharedcache/ui/SharedCacheBDNotifications.cpp')
-rw-r--r--view/sharedcache/ui/SharedCacheBDNotifications.cpp69
1 files changed, 0 insertions, 69 deletions
diff --git a/view/sharedcache/ui/SharedCacheBDNotifications.cpp b/view/sharedcache/ui/SharedCacheBDNotifications.cpp
deleted file mode 100644
index f59f313c..00000000
--- a/view/sharedcache/ui/SharedCacheBDNotifications.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-//
-// Created by kat on 8/22/24.
-//
-
-#include "SharedCacheBDNotifications.h"
-
-
-SharedCacheBDNotifications::SharedCacheBDNotifications(Ref<BinaryView> view)
- : BinaryDataNotification(FunctionUpdates | DataVariableUpdates)
-{
-}
-
-void SharedCacheBDNotifications::OnAnalysisFunctionAdded(BinaryView* view, Function* func)
-{
- //
- // We just cannot do this until one of:
- // "Component::AddAutoFunction"
- // BinaryView::BeginIgnoredUndoActions
- // some similar fix
-
- /*
- if (view->GetTypeName() == VIEW_NAME)
- {
- auto sections = view->GetSectionsAt(func->GetStart());
- if (sections.size() > 0)
- {
- auto section = sections[0];
- auto imageName = section->GetName().substr(0, section->GetName().find("::"));
- auto id = view->BeginUndoActions();
- auto comp = view->GetComponentByPath(imageName);
- if (!comp)
- {
- comp = view->CreateComponentWithName(imageName);
- }
- comp.value()->AddFunction(func);
- view->ForgetUndoActions(id);
- }
- }
- */
-}
-
-
-void SharedCacheBDNotifications::OnSectionAdded(BinaryView* data, Section* section)
-{
-
-}
-
-
-void SharedCacheBDNotifications::OnDataVariableAdded(BinaryView* view, const DataVariable& var)
-{
- /*
- if (view->GetTypeName() == VIEW_NAME)
- {
- auto sections = view->GetSectionsAt(var.address);
- if (sections.size() > 0)
- {
- auto section = sections[0];
- auto imageName = section->GetName().substr(0, section->GetName().find("::"));
- auto comp = view->GetComponentByPath(imageName);
- auto id = view->BeginUndoActions();
- if (!comp)
- {
- comp = view->CreateComponentWithName(imageName);
- }
- comp.value()->AddDataVariable(var);
- view->ForgetUndoActions(id);
- }
- }*/
-}