From 703e183e430f15aff6005d38aefcacf91e2314cd Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 13 Sep 2023 21:43:33 -0700 Subject: General cleanup Remove unused proxy code, curl, and images. --- BrowserSource/Proxy/ScopeGuard.h | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 BrowserSource/Proxy/ScopeGuard.h (limited to 'BrowserSource/Proxy/ScopeGuard.h') diff --git a/BrowserSource/Proxy/ScopeGuard.h b/BrowserSource/Proxy/ScopeGuard.h deleted file mode 100644 index 61bb64d..0000000 --- a/BrowserSource/Proxy/ScopeGuard.h +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once - -#include -#include - -class ScopeGuard { -public: - ScopeGuard(std::function&& cb) : cb_(std::move(cb)), active_(true) {} - ~ScopeGuard() { - Invoke(); - } - - ScopeGuard() = delete; - ScopeGuard(ScopeGuard&) = delete; - ScopeGuard(const ScopeGuard&) = delete; - ScopeGuard(ScopeGuard&&) = delete; - ScopeGuard& operator=(ScopeGuard&) = delete; - ScopeGuard& operator=(const ScopeGuard&) = delete; - - void Cancel() { active_ = false; } - - void Invoke() { - if (active_) { - cb_(); - active_ = false; - } - } - -private: - const std::function cb_; - bool active_; -}; -- cgit v1.2.3