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

Unified Diff: samples/total/client/RowCol.dart

Issue 10635015: Delete proxy and total samples, which have bit-rotted. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « samples/total/client/Reader.dart ('k') | samples/total/client/RowColStyle.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/total/client/RowCol.dart
===================================================================
--- samples/total/client/RowCol.dart (revision 9011)
+++ samples/total/client/RowCol.dart (working copy)
@@ -1,55 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/**
- * An object containing a (row, column) reference.
- *
- * Objects of this class are immutable: they do not change after creation.
- */
-class RowCol implements Hashable {
-
- static int hashOneValue(int val) {
- final int fnvPrime = 0x01000193;
- int output = fnvPrime;
- int octet1 = val & 0xff;
- output ^= octet1;
- output *= fnvPrime;
- int octet2 = (val >> 8) & 0xff;
- output ^= octet2;
- output *= fnvPrime;
- int octet3 = (val >> 16) & 0xff;
- output ^= octet3;
-
- return output;
- }
-
- final int _col;
- final int _row;
-
- int get col() => _col;
-
- int get row() => _row;
-
- RowCol(this._row, this._col) { }
-
- bool operator ==(RowCol other) {
- if (!(other is RowCol)) {
- return false;
- }
- return other._row == _row && other._col == _col;
- }
-
- RowCol operator +(RowCol other) => new RowCol(_row + other._row, _col + other._col);
-
- int hashCode() => (51 + hashOneValue(_row)) * 51 + hashOneValue(_col);
-
- bool isValidCell() => _row > 0 && _col > 0;
-
- String toA1String() => "${StringUtils.columnString(_col)}${_row}";
-
- String toString() => "R${_row}C${_col}";
-
- RowCol translate(int deltaRow, int deltaCol) => new RowCol(_row + deltaRow, _col + deltaCol);
-}
-
« no previous file with comments | « samples/total/client/Reader.dart ('k') | samples/total/client/RowColStyle.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698