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

Unified Diff: webrtc/base/java/src/org/webrtc/Size.java

Issue 2877023002: Move webrtc/{base => rtc_base} (Closed)
Patch Set: update presubmit.py and DEPS include rules Created 3 years, 6 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/base/java/src/org/webrtc/OWNERS ('k') | webrtc/base/java/src/org/webrtc/ThreadUtils.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/java/src/org/webrtc/Size.java
diff --git a/webrtc/base/java/src/org/webrtc/Size.java b/webrtc/base/java/src/org/webrtc/Size.java
deleted file mode 100644
index a711b5d2cadd3a8d7ce33ce813103d14ff160873..0000000000000000000000000000000000000000
--- a/webrtc/base/java/src/org/webrtc/Size.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2016 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-package org.webrtc;
-
-/**
- * Class for representing size of an object. Very similar to android.util.Size but available on all
- * devices.
- */
-public class Size {
- public int width;
- public int height;
-
- public Size(int width, int height) {
- this.width = width;
- this.height = height;
- }
-
- @Override
- public String toString() {
- return width + "x" + height;
- }
-
- @Override
- public boolean equals(Object other) {
- if (!(other instanceof Size)) {
- return false;
- }
- final Size otherSize = (Size) other;
- return width == otherSize.width && height == otherSize.height;
- }
-
- @Override
- public int hashCode() {
- // Use prime close to 2^16 to avoid collisions for normal values less than 2^16.
- return 1 + 65537 * width + height;
- }
-}
« no previous file with comments | « webrtc/base/java/src/org/webrtc/OWNERS ('k') | webrtc/base/java/src/org/webrtc/ThreadUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698