Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java

Issue 1992813007: Remove AppRTCUtils.NonThreadSafe in AppRTC Android Demo (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Reorder imports Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/examples/androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java
index db5ef3d45ebae6663e0b549c913d39c63f11038f..95cda346cdfd003e3d14fa89e3cdcd26b57a1a0d 100644
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java
@@ -21,24 +21,6 @@ public final class AppRTCUtils {
private AppRTCUtils() {
}
- /**
- * NonThreadSafe is a helper class used to help verify that methods of a
- * class are called from the same thread.
- */
- public static class NonThreadSafe {
- private final Long threadId;
-
- public NonThreadSafe() {
- // Store thread ID of the creating thread.
- threadId = Thread.currentThread().getId();
- }
-
- /** Checks if the method is called on the valid/creating thread. */
- public boolean calledOnValidThread() {
- return threadId.equals(Thread.currentThread().getId());
- }
- }
-
/** Helper method which throws an exception when an assertion has failed. */
public static void assertIsTrue(boolean condition) {
if (!condition) {
« no previous file with comments | « webrtc/examples/androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698