Skip to content

Commit 04d6dff

Browse files
Revert "Add logging for query mode (#776)"
This reverts commit 7c94211.
1 parent 649f22d commit 04d6dff

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/local/IndexFreeQueryEngine.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import com.google.firebase.firestore.model.DocumentKey;
2525
import com.google.firebase.firestore.model.MaybeDocument;
2626
import com.google.firebase.firestore.model.SnapshotVersion;
27-
import com.google.firebase.firestore.util.Logger;
2827
import java.util.Collections;
2928
import java.util.Map;
3029

@@ -52,8 +51,6 @@
5251
* </ol>
5352
*/
5453
public class IndexFreeQueryEngine implements QueryEngine {
55-
private static final String LOG_TAG = "IndexFreeQueryEngine";
56-
5754
private LocalDocumentsView localDocumentsView;
5855

5956
@Override
@@ -86,14 +83,6 @@ && needsRefill(previousResults, remoteKeys, queryData.getLastLimboFreeSnapshotVe
8683
return executeFullCollectionScan(query);
8784
}
8885

89-
if (Logger.isDebugEnabled()) {
90-
Logger.debug(
91-
LOG_TAG,
92-
"Re-using previous result from %s to execute query: %s",
93-
queryData.getLastLimboFreeSnapshotVersion().toString(),
94-
query.toString());
95-
}
96-
9786
// Retrieve all results for documents that were updated since the last limbo-document free
9887
// remote snapshot.
9988
ImmutableSortedMap<DocumentKey, Document> updatedResults =
@@ -172,9 +161,6 @@ public void handleDocumentChange(MaybeDocument oldDocument, MaybeDocument newDoc
172161
}
173162

174163
private ImmutableSortedMap<DocumentKey, Document> executeFullCollectionScan(Query query) {
175-
if (Logger.isDebugEnabled()) {
176-
Logger.debug(LOG_TAG, "Using full collection scan to execute query: %s", query.toString());
177-
}
178164
return localDocumentsView.getDocumentsMatchingQuery(query, SnapshotVersion.NONE);
179165
}
180166
}

0 commit comments

Comments
 (0)