Skip to content

Commit 7b26f7a

Browse files
Lint
1 parent 475ea3c commit 7b26f7a

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

packages/firestore/exp/test/shim.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import * as legacy from '@firebase/firestore-types';
1919

20-
import { isPlainObject } from '../../src/util/input_validation';
2120
import { FieldPath as FieldPathExp, Bytes as BytesExp } from '../../exp/index';
2221
import { Compat } from '../../src/compat/compat';
2322

@@ -66,27 +65,3 @@ export class Blob extends Compat<BytesExp> implements legacy.Blob {
6665
return this._delegate.isEqual(other._delegate);
6766
}
6867
}
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-
}

packages/firestore/src/api/database.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { DatabaseId } from '../core/database_info';
2121
import {
2222
FirestoreClient,
2323
firestoreClientGetNamedQuery,
24-
firestoreClientListen,
2524
firestoreClientLoadBundle
2625
} from '../core/firestore_client';
2726
import { DocumentKey } from '../model/document_key';
@@ -61,7 +60,7 @@ import {
6160
QuerySnapshot as ExpQuerySnapshot,
6261
snapshotEqual
6362
} from '../../exp/src/api/snapshot';
64-
import { newUserDataReader, refEqual } from '../../lite/src/api/reference';
63+
import { refEqual } from '../../lite/src/api/reference';
6564
import {
6665
addDoc,
6766
collection,

0 commit comments

Comments
 (0)