Clean up the plat and ui API

Remove functions no longer defined or used on any plat/UI
Remove the old non-multi-monitor-aware plat_resize() and rename
plat_resize_monitor() to plat_resize()
This commit is contained in:
Alexander Babikov
2024-03-16 19:53:11 +05:00
parent b3819f6962
commit 23ba920bbf
6 changed files with 14 additions and 62 deletions

View File

@@ -149,6 +149,11 @@ strnicmp(const char *s1, const char *s2, size_t n)
#endif
}
void
do_start(void)
{
}
void
do_stop(void)
{
@@ -425,12 +430,6 @@ plat_power_off(void)
QTimer::singleShot(0, (const QWidget *) main_window, &QMainWindow::close);
}
void
set_language(uint32_t id)
{
lang_id = id;
}
extern "C++" {
QMap<uint32_t, QPair<QString, QString>> ProgSettings::lcid_langcode = {
{ 0x0403, { "ca-ES", "Catalan (Spain)" } },
@@ -741,12 +740,6 @@ plat_get_cpu_string(char *outbuf, uint8_t len) {
}
double
plat_get_dpi(void)
{
return util::screenOfWidget(main_window)->devicePixelRatio();
}
void
plat_set_thread_name(void *thread, const char *name)
{