refactor: minor refactoring of #10027

pull/10070/head
Torkel Ödegaard 8 years ago
parent df693134bd
commit d29c695d44
  1. 13
      public/app/features/dashboard/dashboard_model.ts

@ -259,16 +259,6 @@ export class DashboardModel {
}
}
// for (let panel of this.panels) {
// if (panel.repeat) {
// if (!cleanUpOnly) {
// this.repeatPanel(panel);
// }
// } else if (panel.repeatPanelId && panel.repeatIteration !== this.iteration) {
// panelsToRemove.push(panel);
// }
// }
// remove panels
_.pull(this.panels, ...panelsToRemove);
@ -324,9 +314,6 @@ export class DashboardModel {
return clone;
}
getBottomYForRow() {
}
repeatPanel(panel: PanelModel, panelIndex: number) {
let variable = _.find(this.templating.list, {name: panel.repeat});
if (!variable) {

Loading…
Cancel
Save