Skip to content

Commit

Permalink
remove date fields
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Feb 23, 2020
1 parent 6cf2e34 commit 42b1d88
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
4 changes: 0 additions & 4 deletions x-pack/legacy/plugins/maps/public/layers/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,6 @@ export class AbstractLayer {
return [];
}

async getDateFields() {
return [];
}

async getFields() {
return [];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,6 @@ export class ESSearchSource extends AbstractESSource {
);
}

async getDateFields() {
try {
const indexPattern = await this.getIndexPattern();
return indexPattern.fields.getByType('date').map(field => {
return this.createField({ fieldName: field.name });
});
} catch (error) {
return [];
}
}

async getFields() {
try {
const indexPattern = await this.getIndexPattern();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ export class AbstractVectorSource extends AbstractSource {
return null;
}

async getDateFields() {
return [];
}

async getFields() {
return [...(await this.getDateFields()), ...(await this.getNumberFields())];
}
Expand Down
4 changes: 0 additions & 4 deletions x-pack/legacy/plugins/maps/public/layers/vector_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,6 @@ export class VectorLayer extends AbstractLayer {
return joinFields;
}

async getDateFields() {
return await this._source.getDateFields();
}

async getFields() {
const sourceFields = await this._source.getFields();
return [...sourceFields, ...this._getJoinFields()];
Expand Down

0 comments on commit 42b1d88

Please sign in to comment.