Skip to content

Commit

Permalink
Remove debug print statements and turn off verbose logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrushforth committed Dec 3, 2020
1 parent 0f61cd3 commit 3078e21
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,31 +221,27 @@ public String getDataDirectory() {
// Overridden methods need to call super.

protected void notifyWillFinishLaunching() {
System.err.println("Application::notifyWillFinishLaunching");
EventHandler handler = getEventHandler();
if (handler != null) {
handler.handleWillFinishLaunchingAction(this, System.nanoTime());
}
}

protected void notifyDidFinishLaunching() {
System.err.println("Application::notifyDidFinishLaunching");
EventHandler handler = getEventHandler();
if (handler != null) {
handler.handleDidFinishLaunchingAction(this, System.nanoTime());
}
}

protected void notifyWillBecomeActive() {
System.err.println("Application::notifyWillBecomeActive");
EventHandler handler = getEventHandler();
if (handler != null) {
handler.handleWillBecomeActiveAction(this, System.nanoTime());
}
}

protected void notifyDidBecomeActive() {
System.err.println("Application::notifyDidBecomeActive");
this.initialActiveEventReceived = true;
EventHandler handler = getEventHandler();
if (handler != null) {
Expand All @@ -254,7 +250,6 @@ protected void notifyDidBecomeActive() {
}

protected void notifyWillResignActive() {
System.err.println("Application::notifyWillResignActive");
EventHandler handler = getEventHandler();
if (handler != null) {
handler.handleWillResignActiveAction(this, System.nanoTime());
Expand All @@ -270,7 +265,6 @@ protected boolean notifyThemeChanged(String themeName) {
}

protected void notifyDidResignActive() {
System.err.println("Application::notifyDidResignActive");
EventHandler handler = getEventHandler();
if (handler != null) {
handler.handleDidResignActiveAction(this, System.nanoTime());
Expand Down Expand Up @@ -597,7 +591,6 @@ public final Window createWindow(Screen screen, int styleMask) {
protected abstract Size staticCursor_getBestSize(int width, int height);

public final Menu createMenu(String title) {
System.err.println("Application::createMenu title:" + title);
return new Menu(title);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ protected void runLoop(final Runnable launchable) {
final Runnable wrappedRunnable = () -> {
if (isNormalTaskbarApp()) {
waitForReactivation();
} else {
System.err.println("KCR: no reactivation needed");
}
launchable.run();
};
Expand All @@ -102,7 +100,6 @@ protected void runLoop(final Runnable launchable) {

// Spin up a nested even loop waiting for the app reactivation event
void waitForReactivation() {
System.err.println("KCR: waitForReactivation");
final EventLoop eventLoop = createEventLoop();
Thread thr = new Thread(() -> {
try {
Expand All @@ -111,16 +108,13 @@ void waitForReactivation() {
ex.printStackTrace();
}
Application.invokeLater(() -> {
System.err.println("KCR: exit nested event loop");
eventLoop.leave(null);
});
});
thr.setDaemon(true);
thr.start();

System.err.println("KCR: enter nested event loop");
eventLoop.enter();
System.err.println("KCR: nested event loop returns");
}

native private void _finishTerminating();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#import "ProcessInfo.h"
#import <Security/SecRequirement.h>

#define VERBOSE
//#define VERBOSE
#ifndef VERBOSE
#define LOG(MSG, ...)
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#import "GlassHelper.h"
#import "GlassKey.h"

#define VERBOSE
//#define VERBOSE
#ifndef VERBOSE
#define LOG(MSG, ...)
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
// (*env)->DeleteLocalRef(env, theString);
//}

#define VERBOSE
//#define VERBOSE
#ifndef VERBOSE
#define LOG(MSG, ...)
#else
Expand Down

0 comments on commit 3078e21

Please sign in to comment.