app: Remove unused code

This commit is contained in:
joel16 2024-05-11 19:08:11 -04:00
parent bed515818f
commit b12dc03dea
2 changed files with 0 additions and 51 deletions

View File

@ -1,40 +0,0 @@
#include <psp2/kernel/clib.h>
#include "dbbrowser.h"
#include "log.h"
#include "sqlite3.h"
#include "utils.h"
namespace DBBrowser {
int GetTables(std::vector<std::string> &tables) {
sqlite3 *db = nullptr;
int ret = sqlite3_open_v2(db_path, &db, SQLITE_OPEN_READWRITE, nullptr);
if (ret != SQLITE_OK) {
Log::Error("sqlite3_open_v2 failed to open %s\n", db_path);
return ret;
}
std::string query = std::string("SELECT tbl_name FROM sqlite_schema WHERE type = 'table';");
sqlite3_stmt *stmt = nullptr;
ret = sqlite3_prepare_v2(db, query.c_str(), -1, &stmt, nullptr);
while ((ret = sqlite3_step(stmt)) == SQLITE_ROW) {
char res[64];
sceClibSnprintf(res, 64, "%s", sqlite3_column_text(stmt, 0));
tables.push_back(res);
}
if (ret != SQLITE_DONE) {
sqlite3_finalize(stmt);
sqlite3_close(db);
return ret;
}
sqlite3_finalize(stmt);
sqlite3_close(db);
return 0;
}
}

View File

@ -1,11 +0,0 @@
#ifndef _VITA_HB_SORTER_DB_BROWSER_H_
#define _VITA_HB_SORTER_DB_BROWSER_H_
#include <vector>
#include <string>
namespace DBBrowser {
int GetTables(std::vector<std::string> &tables);
}
#endif