Browse Source

remove extra clean action from class api

CPP-GTK4
yggverse 3 months ago
parent
commit
98437884e1
  1. 2
      src/app/browser.cpp
  2. 11
      src/app/browser/main.cpp
  3. 4
      src/app/browser/main.hpp

2
src/app/browser.cpp

@ -309,6 +309,8 @@ void Browser::clean() @@ -309,6 +309,8 @@ void Browser::clean()
DB::SESSION::clean(
db
);
browserMain->tab_close_all();
}
void Browser::save()

11
src/app/browser/main.cpp

@ -45,17 +45,6 @@ Main::Main( @@ -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
) {

4
src/app/browser/main.hpp

@ -98,10 +98,6 @@ namespace app::browser @@ -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
);

Loading…
Cancel
Save