Skip to content

Commit

Permalink
Removing unneeded imports
Browse files Browse the repository at this point in the history
  • Loading branch information
graphefruit committed Nov 23, 2024
1 parent f946205 commit 44ac496
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ register();
})
export class AppComponent implements AfterViewInit {
public toggleAbout: boolean = false;
public registerBackFunction: any;
@ViewChild(IonRouterOutlet, { static: false })
public routerOutlet: IonRouterOutlet;

Expand Down
1 change: 0 additions & 1 deletion src/app/brew/brew.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { UISettingsStorage } from '../../services/uiSettingsStorage';
import { UIBrewHelper } from '../../services/uiBrewHelper';
import { Brew } from '../../classes/brew/brew';
import { IBrewPageFilter } from '../../interfaces/brew/iBrewPageFilter';
import { BREW_ACTION } from '../../enums/brews/brewAction';
import { BrewFilterComponent } from './brew-filter/brew-filter.component';
import { Settings } from '../../classes/settings/settings';
import { AgVirtualSrollComponent } from 'ag-virtual-scroll';
Expand Down
14 changes: 6 additions & 8 deletions src/app/dashboard/dashboard.page.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core';
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { UIStatistic } from '../../services/uiStatistic';
import { ModalController } from '@ionic/angular';
import { Brew } from '../../classes/brew/brew';
import { UIBrewStorage } from '../../services/uiBrewStorage';
import { UIBrewHelper } from '../../services/uiBrewHelper';
Expand Down Expand Up @@ -33,7 +32,6 @@ export class DashboardPage implements OnInit {

constructor(
public uiStatistic: UIStatistic,
private readonly modalCtrl: ModalController,
private readonly uiBrewStorage: UIBrewStorage,
private readonly uiBrewHelper: UIBrewHelper,
private readonly changeDetectorRef: ChangeDetectorRef,
Expand All @@ -42,7 +40,7 @@ export class DashboardPage implements OnInit {
private readonly uiBeanHelper: UIBeanHelper,
private readonly uiSettingsStorage: UISettingsStorage,
private readonly uiPreparationStorage: UIPreparationStorage,
private readonly uiMillStorage: UIMillStorage
private readonly uiMillStorage: UIMillStorage,
) {}

public ngOnInit() {
Expand Down Expand Up @@ -99,7 +97,7 @@ export class DashboardPage implements OnInit {
(e) =>
e.getBean().finished === false &&
e.getMill().finished === false &&
e.getPreparation().finished === false
e.getPreparation().finished === false,
);
}
this.brews = this.brews.slice(0, 10);
Expand Down Expand Up @@ -135,7 +133,7 @@ export class DashboardPage implements OnInit {
// #183
let leftOverCount: number = 0;
const openBeans: Array<Bean> = this.beans.filter(
(bean) => !bean.finished && bean.isFrozen() === false
(bean) => !bean.finished && bean.isFrozen() === false,
);
for (const bean of openBeans) {
if (bean.weight > 0) {
Expand All @@ -156,7 +154,7 @@ export class DashboardPage implements OnInit {

let leftOverCount: number = 0;
const openBeans: Array<Bean> = this.beans.filter(
(bean) => !bean.finished && bean.isFrozen() === true
(bean) => !bean.finished && bean.isFrozen() === true,
);
for (const bean of openBeans) {
if (bean.weight > 0) {
Expand All @@ -175,7 +173,7 @@ export class DashboardPage implements OnInit {
public getUsedWeightCount(_bean: Bean): number {
let usedWeightCount: number = 0;
const relatedBrews: Array<Brew> = this.uiBeanHelper.getAllBrewsForThisBean(
_bean.config.uuid
_bean.config.uuid,
);
for (const brew of relatedBrews) {
if (brew?.bean_weight_in > 0) {
Expand Down

0 comments on commit 44ac496

Please sign in to comment.