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

Unified Diff: lib/compiler/implementation/lib/interceptors.dart

Issue 10911206: Remove support for operator negate and replace occurrences with unary (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
Index: lib/compiler/implementation/lib/interceptors.dart
diff --git a/lib/compiler/implementation/lib/interceptors.dart b/lib/compiler/implementation/lib/interceptors.dart
index 4e936501974b14b61e19221644e0f9a61ebc8693..8ca99f3a3151afe080eb7ec529b72c4cebdb34b0 100644
--- a/lib/compiler/implementation/lib/interceptors.dart
+++ b/lib/compiler/implementation/lib/interceptors.dart
@@ -414,13 +414,6 @@ isInfinite(receiver) {
|| JS('bool', @'# == -Infinity', receiver);
}
-// TODO(ahe): Remove this method when we don't support operator negate.
-negate(receiver) {
- if (receiver is !num) return UNINTERCEPTED(receiver.negate());
-
- return JS('num', @'-#', receiver);
-}
-
round(receiver) {
if (receiver is !num) return UNINTERCEPTED(receiver.round());

Powered by Google App Engine
This is Rietveld 408576698