File tree 2 files changed +1
-27
lines changed 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import * as legacy from '@firebase/firestore-types' ;
19
19
20
- import { isPlainObject } from '../../src/util/input_validation' ;
21
20
import { FieldPath as FieldPathExp , Bytes as BytesExp } from '../../exp/index' ;
22
21
import { Compat } from '../../src/compat/compat' ;
23
22
@@ -66,27 +65,3 @@ export class Blob extends Compat<BytesExp> implements legacy.Blob {
66
65
return this . _delegate . isEqual ( other . _delegate ) ;
67
66
}
68
67
}
69
-
70
- /**
71
- * Takes user data that uses API types from this shim and replaces them
72
- * with the the firestore-exp API types.
73
- */
74
- function unwrap ( value : any ) : any {
75
- if ( Array . isArray ( value ) ) {
76
- return value . map ( v => unwrap ( v ) ) ;
77
- } else if ( value instanceof Compat ) {
78
- return value . _delegate ;
79
- } else if ( value instanceof FieldPath ) {
80
- return value . _delegate ;
81
- } else if ( isPlainObject ( value ) ) {
82
- const obj : any = { } ;
83
- for ( const key in value ) {
84
- if ( value . hasOwnProperty ( key ) ) {
85
- obj [ key ] = unwrap ( value [ key ] ) ;
86
- }
87
- }
88
- return obj ;
89
- } else {
90
- return value ;
91
- }
92
- }
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import { DatabaseId } from '../core/database_info';
21
21
import {
22
22
FirestoreClient ,
23
23
firestoreClientGetNamedQuery ,
24
- firestoreClientListen ,
25
24
firestoreClientLoadBundle
26
25
} from '../core/firestore_client' ;
27
26
import { DocumentKey } from '../model/document_key' ;
@@ -61,7 +60,7 @@ import {
61
60
QuerySnapshot as ExpQuerySnapshot ,
62
61
snapshotEqual
63
62
} from '../../exp/src/api/snapshot' ;
64
- import { newUserDataReader , refEqual } from '../../lite/src/api/reference' ;
63
+ import { refEqual } from '../../lite/src/api/reference' ;
65
64
import {
66
65
addDoc ,
67
66
collection ,
You can’t perform that action at this time.
0 commit comments