Graphite: remove feature that moves alias function last (#17791)

This commit is contained in:
Torkel Ödegaard 2019-06-27 11:16:11 +02:00 committed by GitHub
parent 5f3a71bc7a
commit 013a1abb6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,18 +131,6 @@ export default class GraphiteQuery {
addFunction(newFunc) {
this.functions.push(newFunc);
this.moveAliasFuncLast();
}
moveAliasFuncLast() {
const aliasFunc: any = _.find(this.functions, func => {
return func.def.name.startsWith('alias');
});
if (aliasFunc) {
this.functions = _.without(this.functions, aliasFunc);
this.functions.push(aliasFunc);
}
}
addFunctionParameter(func, value) {