From abb65c7fcf570e69480ca70c92d4e271a78ffee2 Mon Sep 17 00:00:00 2001
From: Ruben Pollan <meskio@sindominio.net>
Date: Tue, 4 Aug 2020 12:55:47 +0200
Subject: [PATCH] Unblock is not needed switch off does unblock bitmask

---
 gui/backend.go     | 5 -----
 gui/handlers.cpp   | 5 -----
 gui/handlers.h     | 1 -
 pkg/backend/api.go | 5 -----
 4 files changed, 16 deletions(-)

diff --git a/gui/backend.go b/gui/backend.go
index af29ec6c..536ade34 100644
--- a/gui/backend.go
+++ b/gui/backend.go
@@ -32,11 +32,6 @@ func SwitchOff() {
 	backend.SwitchOff()
 }
 
-//export Unblock
-func Unblock() {
-	backend.Unblock()
-}
-
 //export Quit
 func Quit() {
 	backend.Quit()
diff --git a/gui/handlers.cpp b/gui/handlers.cpp
index de54161d..ab64afb4 100644
--- a/gui/handlers.cpp
+++ b/gui/handlers.cpp
@@ -30,11 +30,6 @@ void Backend::switchOff()
     SwitchOff();
 }
 
-void Backend::unblock()
-{
-    Unblock();
-}
-
 void Backend::donateAccepted()
 {
     DonateAccepted();
diff --git a/gui/handlers.h b/gui/handlers.h
index 8f89279d..62a733d1 100644
--- a/gui/handlers.h
+++ b/gui/handlers.h
@@ -34,7 +34,6 @@ public slots:
     QString getVersion();
     void switchOn();
     void switchOff();
-    void unblock();
     void donateAccepted();
     void quit();
 };
diff --git a/pkg/backend/api.go b/pkg/backend/api.go
index 0cab17f7..99e156f3 100644
--- a/pkg/backend/api.go
+++ b/pkg/backend/api.go
@@ -24,11 +24,6 @@ func SwitchOff() {
 	go stopVPN()
 }
 
-func Unblock() {
-	//TODO -
-	fmt.Println("unblock... [not implemented]")
-}
-
 func Quit() {
 	if ctx.Status != off {
 		go setStatus(stopping)
-- 
GitLab