Skip to content

Commit

Permalink
Remove {BlockTracker,StaticInterval}PollingControllerV1
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Jan 29, 2025
1 parent af11a14 commit a87c5d5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseController, BaseControllerV1 } from '@metamask/base-controller';
import { BaseController } from '@metamask/base-controller';
import type {
NetworkClientId,
NetworkClient,
Expand Down Expand Up @@ -98,10 +98,3 @@ export const BlockTrackerPollingController = <
BlockTrackerPollingControllerMixin<typeof BaseController, PollingInput>(
BaseController,
);

export const BlockTrackerPollingControllerV1 = <
PollingInput extends BlockTrackerPollingInput,
>() =>
BlockTrackerPollingControllerMixin<typeof BaseControllerV1, PollingInput>(
BaseControllerV1,
);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseController, BaseControllerV1 } from '@metamask/base-controller';
import { BaseController } from '@metamask/base-controller';
import type { Json } from '@metamask/utils';

import {
Expand Down Expand Up @@ -89,10 +89,3 @@ export const StaticIntervalPollingController = <PollingInput extends Json>() =>
StaticIntervalPollingControllerMixin<typeof BaseController, PollingInput>(
BaseController,
);

export const StaticIntervalPollingControllerV1 = <
PollingInput extends Json,
>() =>
StaticIntervalPollingControllerMixin<typeof BaseControllerV1, PollingInput>(
BaseControllerV1,
);
2 changes: 0 additions & 2 deletions packages/polling-controller/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
export {
BlockTrackerPollingControllerOnly,
BlockTrackerPollingController,
BlockTrackerPollingControllerV1,
} from './BlockTrackerPollingController';

export {
StaticIntervalPollingControllerOnly,
StaticIntervalPollingController,
StaticIntervalPollingControllerV1,
} from './StaticIntervalPollingController';

export type { IPollingController } from './types';

0 comments on commit a87c5d5

Please sign in to comment.