From 571d4ed2f01c1117237b1a9684ad9b1d1ad8963a Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Mon, 26 Sep 2022 17:07:52 -0400 Subject: DebugInfo: make parseInfo have a progress callback This will enable us to have progress bars and cancellation of debuginfo application --- database.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'database.cpp') diff --git a/database.cpp b/database.cpp index 326b57f2..ba20e02b 100644 --- a/database.cpp +++ b/database.cpp @@ -25,19 +25,6 @@ using namespace Json; using namespace std; -struct ProgressContext -{ - std::function callback; -}; - - -bool ProgressCallback(void* ctxt, size_t current, size_t total) -{ - ProgressContext* pctxt = reinterpret_cast(ctxt); - return pctxt->callback(current, total); -} - - KeyValueStore::KeyValueStore() { m_object = BNCreateKeyValueStore(); -- cgit v1.3.1