mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-21 02:32:18 +00:00
Street Level: drop the unused coverageLines diagnostics
Nothing reads the drawn coverage lines: the browser gate aims elsewhere, so lineCoverage's drawnLines, the providers' coverageLines and the layer's coverageLines go, with their tests and the doc mention.
This commit is contained in:
1 parent
e34b5103c6
commit
c76832ca69
10 files changed
+2
-139
No files matched your search
@@ -535,7 +535,6 @@ export function createKartaViewProvider({
|
||||
loading: state.sequence.loading,
|
||||
error: state.sequence.error,
|
||||
}),
|
||||
coverageLines: () => coverage.drawnLines(),
|
||||
|
||||
/**
|
||||
* The nearest photo within the search radius that can be shown, or
|
||||
|
||||
@@ -196,7 +196,6 @@ export function createMapillaryProvider({ source, photoViewer = null }) {
|
||||
loading: state.sequence.loading,
|
||||
error: state.sequence.error,
|
||||
}),
|
||||
coverageLines: () => parts.coverage.drawnLines(),
|
||||
|
||||
/**
|
||||
* The nearest image that passes the imagery filter, or null: what
|
||||
|
||||
@@ -526,9 +526,6 @@ export function createPanoramaxProvider({
|
||||
cones.clearSelection();
|
||||
drawn = null;
|
||||
},
|
||||
// The lines drawn now (current and stale tiles), as [lon, lat]
|
||||
// parts, for diagnostics and the browser gate's line clicks.
|
||||
coverageLines: () => coverage.drawnLines(),
|
||||
sequenceStats: () => ({
|
||||
selectedId: state.sequence.selectedId,
|
||||
images: state.sequence.images.length,
|
||||
|
||||
@@ -1182,9 +1182,3 @@ test('a busy or timed-out tile keeps its own message; only a body that is not a
|
||||
assert.equal(env.instance.sequenceStats().error, failure.message);
|
||||
}
|
||||
});
|
||||
|
||||
test('coverageLines exposes the drawn lines, none before any tile', () => {
|
||||
const { instance } = setup();
|
||||
assert.equal(typeof instance.coverageLines, 'function');
|
||||
assert.deepEqual(instance.coverageLines(), []);
|
||||
});
|
||||
Reference in new issue
Block a user