From 98437884e1960633625333f19211f662788e7551 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 12 Sep 2024 23:59:47 +0300 Subject: [PATCH] remove extra clean action from class api --- src/app/browser.cpp | 2 ++ src/app/browser/main.cpp | 11 ----------- src/app/browser/main.hpp | 4 ---- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/app/browser.cpp b/src/app/browser.cpp index b0dc1325..46878306 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -309,6 +309,8 @@ void Browser::clean() DB::SESSION::clean( db ); + + browserMain->tab_close_all(); } void Browser::save() diff --git a/src/app/browser/main.cpp b/src/app/browser/main.cpp index 631fcd5a..a0139004 100644 --- a/src/app/browser/main.cpp +++ b/src/app/browser/main.cpp @@ -45,17 +45,6 @@ Main::Main( // Actions /// Session -void Main::clean( - const sqlite3_int64 & APP_BROWSER__SESSION__ID -) { - DB::SESSION::clean( - db, - APP_BROWSER__SESSION__ID - ); - - mainTab->close_all(); -}; - int Main::restore( const sqlite3_int64 & APP_BROWSER__SESSION__ID ) { diff --git a/src/app/browser/main.hpp b/src/app/browser/main.hpp index e1b42cf8..a9c56d22 100644 --- a/src/app/browser/main.hpp +++ b/src/app/browser/main.hpp @@ -98,10 +98,6 @@ namespace app::browser const sqlite3_int64 & APP_BROWSER__SESSION__ID ); // return sqlite3_finalize status code - void clean( - const sqlite3_int64 & APP_BROWSER__SESSION__ID - ); - void save( const sqlite3_int64 & APP_BROWSER__SESSION__ID );