Skip to content

Commit

Permalink
Remove unused context component utilities and imported from ember-core
Browse files Browse the repository at this point in the history
`applyContextComponentArguments`, `contextComponentCallback` functions moved to `ember-core` for shared usage.
  • Loading branch information
tortuvshin committed Mar 13, 2024
1 parent 3618598 commit 47ac23a
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 99 deletions.
4 changes: 2 additions & 2 deletions addon/components/batch-form-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class BatchFormPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/batch-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { isArray } from '@ember/array';
import BatchPanelDetailsComponent from './batch-panel/details';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class BatchPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/inventory-form-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class InventoryFormPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/inventory-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { isArray } from '@ember/array';
import InventoryPanelDetailsComponent from './inventory-panel/details';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class InventoryPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/product-form-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import getWithDefault from '@fleetbase/ember-core/utils/get-with-default';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class ProductFormPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/product-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { isArray } from '@ember/array';
import ProductPanelDetailComponent from './product-panel/details';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class ProductPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/purchase-order-form-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class PurchaseOrderFormPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/purchase-order-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { isArray } from '@ember/array';
import PurchaseOrderPanelDetailsComponent from './purchase-order-panel/details';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class PurchaseOrderPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/sales-order-form-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { isValid as isValidDate } from 'date-fns';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class SalesOrderFormPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/sales-order-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { isArray } from '@ember/array';
import SalesOrderPanelDetailsComponent from './sales-order-panel/details';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class SalesOrderPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/stock-adjustment-form-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class StockAdjustmentFormPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/supplier-form-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class SupplierFormPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/supplier-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { isArray } from '@ember/array';
import SupplierPanelDetailsComponent from './supplier-panel/details';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class SupplierPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/warehouse-form-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { action } from '@ember/object';
import { isBlank } from '@ember/utils';
import { all } from 'rsvp';
import Point from '@fleetbase/fleetops-data/utils/geojson/point';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class WarehouseFormPanelComponent extends Component {
/**
Expand Down
4 changes: 2 additions & 2 deletions addon/components/warehouse-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { isArray } from '@ember/array';
import WarehousePanelDetailComponent from './warehouse-panel/details';
import contextComponentCallback from '../utils/context-component-callback';
import applyContextComponentArguments from '../utils/apply-context-component-arguments';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
import applyContextComponentArguments from '@fleetbase/ember-core/utils/apply-context-component-arguments';

export default class WarehousePanelComponent extends Component {
/**
Expand Down
31 changes: 0 additions & 31 deletions addon/utils/apply-context-component-arguments.js

This file was deleted.

16 changes: 0 additions & 16 deletions addon/utils/context-component-callback.js

This file was deleted.

1 change: 0 additions & 1 deletion app/utils/apply-context-component-arguments.js

This file was deleted.

1 change: 0 additions & 1 deletion app/utils/context-component-callback.js

This file was deleted.

10 changes: 0 additions & 10 deletions tests/unit/utils/apply-context-component-arguments-test.js

This file was deleted.

10 changes: 0 additions & 10 deletions tests/unit/utils/context-component-callback-test.js

This file was deleted.

0 comments on commit 47ac23a

Please sign in to comment.