Chromium Code Reviews| Index: sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate |
| diff --git a/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate b/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate |
| index d2eee5ad6005e17387c50ba6961ab23f61c41533..17b7a4a2e936451119647b8e60e5e58ea590dd27 100644 |
| --- a/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate |
| +++ b/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate |
| @@ -23,12 +23,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| // numeric mode tend to convert the string into a number. This fails |
| // silently, resulting in zero ('readonly'). |
| var txn = _transaction(storeName_OR_storeNames, mode); |
| - if (_hasNumericMode(txn)) { |
| - _transaction_fn = _transaction_numeric_mode; |
| - txn = _transaction_fn(this, storeName_OR_storeNames, mode); |
| - } else { |
| - _transaction_fn = _transaction_string_mode; |
| - } |
| + _transaction_fn = _transaction_string_mode; |
|
sra1
2012/12/18 00:56:52
Since this is the only remaining version of the fu
Emily Fortuna
2012/12/18 18:57:47
Done.
|
| return txn; |
| } |
| @@ -36,13 +31,6 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| return db._transaction(stores, mode); |
| } |
| - static Transaction _transaction_numeric_mode($CLASSNAME db, stores, mode) { |
| - int intMode; |
| - if (mode == 'readonly') intMode = Transaction.READ_ONLY; |
| - if (mode == 'readwrite') intMode = Transaction.READ_WRITE; |
| - return db._transaction(stores, intMode); |
| - } |
| - |
| @JSName('transaction') |
| Transaction _transaction(stores, mode) native; |