Skip to content

Commit

Permalink
Dead code removed (#1016)
Browse files Browse the repository at this point in the history
* Dead code removed

* tsc rollback

* delete code further

---------

Co-authored-by: Adrian Mroz <adrian.mroz@allegro.pl>
  • Loading branch information
piwysocki and adrianmroz-allegro authored Feb 16, 2023
1 parent fbf678b commit 27cb187
Show file tree
Hide file tree
Showing 44 changed files with 10 additions and 1,008 deletions.
2 changes: 0 additions & 2 deletions src/client/components/filter-tile/partial-filter-tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ import { Stage } from "../../../common/models/stage/stage";
import { Timekeeper } from "../../../common/models/timekeeper/timekeeper";
import { Unary } from "../../../common/utils/functional/functional";
import { Fn } from "../../../common/utils/general/general";
import { classNames } from "../../utils/dom/dom";
import { FilterMenu } from "../filter-menu/filter-menu";
import { WithRef } from "../with-ref/with-ref";
import { FILTER_CLASS_NAME } from "./filter-tile";

interface PartialFilterTileProps {
dimension: Dimension;
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion src/client/components/notifications/notification-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class NotificationCard extends React.Component<NotificationCardProps, Not
}

appear = () => {
const { title, message, duration, muted } = this.props.model;
const { duration, muted } = this.props.model;

const d = clamp(duration, -1, 10);

Expand Down
1 change: 0 additions & 1 deletion src/client/components/router/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ export class Router extends React.Component<RouterProps, RouterState> {

stripUnnecessaryFragments(path: QualifiedPath, crumbs: string[]) {
const { rootFragment } = this.props;
const fragments = path.fragment.split(HASH_SEPARATOR);

const parentFragment = crumbs.join("/").replace(path.crumbs.join("/"), "").replace(/\/$/, "");
const strippedRouteCrumbs = path.crumbs.slice(0, path.fragment.split(HASH_SEPARATOR).length);
Expand Down

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions src/client/components/segment-bubble/segment-bubble.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
background: rgba($white, 0.9);
transform: translate(-50%, -100%);

.segment-action-buttons:nth-child(n+2) {
margin-top: 7px;
}

.shpitz {
left: 50%;
top: 100%;
Expand Down
2 changes: 0 additions & 2 deletions src/client/components/series-tile/placeholder-series.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ import { Series } from "../../../common/models/series/series";
import { Stage } from "../../../common/models/stage/stage";
import { Unary } from "../../../common/utils/functional/functional";
import { Fn } from "../../../common/utils/general/general";
import { classNames } from "../../utils/dom/dom";
import { SeriesMenu } from "../series-menu/series-menu";
import { WithRef } from "../with-ref/with-ref";
import { SERIES_CLASS_NAME } from "./series-tiles";

interface PlaceholderSeriesTileProps {
measure: Measure;
Expand Down
2 changes: 0 additions & 2 deletions src/client/components/series-tile/series-tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ import { Series } from "../../../common/models/series/series";
import { Stage } from "../../../common/models/stage/stage";
import { Binary, Ternary, Unary } from "../../../common/utils/functional/functional";
import { Fn } from "../../../common/utils/general/general";
import { classNames } from "../../utils/dom/dom";
import { SeriesMenu } from "../series-menu/series-menu";
import { SvgIcon } from "../svg-icon/svg-icon";
import { WithRef } from "../with-ref/with-ref";
import { SERIES_CLASS_NAME } from "./series-tiles";

interface SeriesTileProps {
item: ConcreteSeries;
Expand Down
2 changes: 0 additions & 2 deletions src/client/components/series-tile/series-tiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import { TileOverflowContainer } from "../tile-overflow-container/tile-overflow-
import { PlaceholderSeriesTile } from "./placeholder-series";
import { SeriesTile } from "./series-tile";

export const SERIES_CLASS_NAME = "series";

interface SeriesTilesProps {
menuStage: Stage;
maxItems: number;
Expand Down
Loading

0 comments on commit 27cb187

Please sign in to comment.