Simplify NativeString constructor
The only usage of T.get() method was removed in I9468383bb4b63bc0ede4cdb33a1695db2e6f68e9. Remove it as it is not used any more. Change-Id: I3042b488fd107c6f5a67cad783faed086a3bd2ab
This commit is contained in:
parent
d36f7cdc79
commit
ac2086d183
@ -21,13 +21,7 @@ import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
public final class NativeString extends JavaScriptObject {
|
||||
public static final JavaScriptObject TYPE = init();
|
||||
|
||||
private static final native JavaScriptObject init() /*-{
|
||||
var T = function(s){this.s=s};
|
||||
T.prototype = {
|
||||
get: function(){return this.s},
|
||||
};
|
||||
return T;
|
||||
}-*/;
|
||||
private static final native JavaScriptObject init() /*-{ return function(s){this.s=s}; }-*/;
|
||||
|
||||
static final NativeString wrap(String s) {
|
||||
return wrap0(TYPE, s);
|
||||
|
Loading…
Reference in New Issue
Block a user