Skip to content

Commit

Permalink
Remove unused macros and Qt translation
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKodeToad committed Feb 4, 2023
1 parent 447d4af commit 30b77a3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bsnes/ui-qt/platform/platform_x.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#define None XNone
#define Window XWindow
#include <dbus/dbus.h>
#undef None
#undef Window

static void log(DBusError &error) {
fprintf(stderr, "DBus error: %s\n", error.name);
Expand All @@ -24,7 +20,7 @@ void Application::App::inhibitScreenSaver() {
"org.freedesktop.ScreenSaver", "Inhibit");

const char *app = "org.bsnes.bsnes-plus";
const char *reason = tr("Playing a game").toLocal8Bit().data();
const char *reason = "Playing a game";
if (!dbus_message_append_args(message, DBUS_TYPE_STRING, &app,
DBUS_TYPE_STRING, &reason, DBUS_TYPE_INVALID)) {
dbus_connection_unref(connection);
Expand Down

0 comments on commit 30b77a3

Please sign in to comment.