@@ -25,17 +25,16 @@ import { BundleReaderSync, SizedBundleElement } from './bundle_reader';
2525 */
2626export class BundleReaderSyncImpl implements BundleReaderSync {
2727 private metadata : BundleMetadata ;
28- private elements : Array < SizedBundleElement > ;
28+ private elements : SizedBundleElement [ ] ;
2929 private cursor : number ;
3030 constructor (
3131 private bundleData : string ,
3232 readonly serializer : JsonProtoSerializer
3333 ) {
3434 this . cursor = 0 ;
35- this . elements = new Array < SizedBundleElement > ( ) ;
35+ this . elements = [ ] ;
3636
3737 let element = this . nextElement ( ) ;
38- console . error ( 'DEEDB Element (metadata): ' , element ) ;
3938 if ( element && element . isBundleMetadata ( ) ) {
4039 this . metadata = element as BundleMetadata ;
4140 } else {
@@ -46,11 +45,8 @@ export class BundleReaderSyncImpl implements BundleReaderSync {
4645 do {
4746 element = this . nextElement ( ) ;
4847 if ( element !== null ) {
49- console . error ( 'DEDB parsed element: ' , element ) ;
5048 this . elements . push ( element ) ;
51- } else {
52- console . error ( 'DEDB no more elements.' ) ;
53- }
49+ }
5450 } while ( element !== null ) ;
5551 }
5652
@@ -60,7 +56,7 @@ export class BundleReaderSyncImpl implements BundleReaderSync {
6056 }
6157
6258 /* Returns the DocumentSnapshot or NamedQuery elements of the bundle. */
63- getElements ( ) : Array < SizedBundleElement > {
59+ getElements ( ) : SizedBundleElement [ ] {
6460 return this . elements ;
6561 }
6662
0 commit comments