You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/11/01 12:33:18 UTC

[05/10] git commit: [flex-falcon] [refs/heads/develop] - With the introduction of 'org.apache.flex.utils.Language', these global utility functions, which fill in some of the language gaps between AS and JS, are no longer needed.

With the introduction of 'org.apache.flex.utils.Language', these global utility functions, which fill in some of the language gaps between AS and JS, are no longer needed.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/d3c0cd33
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/d3c0cd33
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/d3c0cd33

Branch: refs/heads/develop
Commit: d3c0cd33ce2cabe8125af50c13b9f4774f449014
Parents: 914fb88
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Fri Nov 1 09:36:22 2013 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Fri Nov 1 12:32:58 2013 +0100

----------------------------------------------------------------------
 .../mxml/flexjs/MXMLFlexJSPublisher.java        | 29 --------------------
 1 file changed, 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d3c0cd33/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
index 3947e02..92ba31a 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
@@ -351,35 +351,6 @@ public class MXMLFlexJSPublisher extends JSGoogPublisher implements
         htmlFile.append("</head>\n");
         htmlFile.append("<body>\n");
         htmlFile.append("\t<script type=\"text/javascript\">\n");
-
-        // TODO (erikdebruin) the utility methods should have their own place...
-        // is()
-        htmlFile.append("\t\tfunction is(object, type) {\n");
-        htmlFile.append("\t\t\treturn true;\n");
-        htmlFile.append("\t\t};\n");
-        htmlFile.append("\t\t\n");
-        // int()
-        htmlFile.append("\t\tfunction int(value) {\n");
-        htmlFile.append("\t\t\treturn value >> 0;\n");
-        htmlFile.append("\t\t};\n");
-        htmlFile.append("\t\t\n");
-        // trace()
-        htmlFile.append("\t\tfunction trace(value) {\n");
-        htmlFile.append("\t\t\ttry {\n");
-        htmlFile.append("\t\t\t\tif (console && console.log) {\n");
-        htmlFile.append("\t\t\t\t\tconsole.log(value);\n");
-        htmlFile.append("\t\t\t\t}\n");
-        htmlFile.append("\t\t\t} catch (e) {\n");
-        htmlFile.append("\t\t\t\t// ignore; at least we tried ;-)\n");
-        htmlFile.append("\t\t\t}\n");
-        htmlFile.append("\t\t};\n");
-        htmlFile.append("\t\t\n");
-        // uint()
-        htmlFile.append("\t\tfunction uint(value) {\n");
-        htmlFile.append("\t\t\treturn value >>> 0;\n");
-        htmlFile.append("\t\t};\n");
-        htmlFile.append("\t\t\n");
-
         htmlFile.append("\t\tnew ");
         htmlFile.append(projectName);
         htmlFile.append("()");