Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(/internal): remove unused imports #4005

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/internal/observable/forkJoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function forkJoin<T>(...sources: ObservableInput<T>[]): Observable<T[]>;
*
* ### Use forkJoin with project function
* ```javascript
* import { jorkJoin, interval } from 'rxjs';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HAHAHAHAHAHAHAHAHAHAHAAHAHAHA

"jorkJoin"

* import { forkJoin, interval } from 'rxjs';
* import { take } from 'rxjs/operators';
*
* const observable = forkJoin(
Expand Down
4 changes: 1 addition & 3 deletions src/internal/operators/elementAt.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';
import { Observable } from '../Observable';
import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
import { MonoTypeOperatorFunction } from '../types';
import { filter } from './filter';
import { throwIfEmpty } from './throwIfEmpty';
import { defaultIfEmpty } from './defaultIfEmpty';
Expand Down
2 changes: 0 additions & 2 deletions src/internal/operators/first.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Observable } from '../Observable';
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { EmptyError } from '../util/EmptyError';
import { OperatorFunction } from '../../internal/types';
import { filter } from './filter';
Expand Down
2 changes: 0 additions & 2 deletions src/internal/operators/last.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Observable } from '../Observable';
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { EmptyError } from '../util/EmptyError';
import { OperatorFunction } from '../../internal/types';
import { filter } from './filter';
Expand Down
6 changes: 0 additions & 6 deletions src/internal/operators/switchMapTo.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import { Operator } from '../Operator';
import { Observable } from '../Observable';
import { Subscriber } from '../Subscriber';
import { Subscription } from '../Subscription';
import { OuterSubscriber } from '../OuterSubscriber';
import { InnerSubscriber } from '../InnerSubscriber';
import { subscribeToResult } from '../util/subscribeToResult';
import { ObservableInput, OperatorFunction } from '../types';
import { switchMap } from './switchMap';

Expand Down
1 change: 0 additions & 1 deletion src/internal/operators/throwIfEmpty.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { tap } from './tap';
import { EmptyError } from '../util/EmptyError';
import { MonoTypeOperatorFunction } from '../types';

/**
* If the source observable completes without emitting a value, it will emit
Expand Down
5 changes: 1 addition & 4 deletions src/internal/operators/timeout.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { async } from '../scheduler/async';
import { isDate } from '../util/isDate';
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { Observable } from '../Observable';
import { TimeoutError } from '../util/TimeoutError';
import { MonoTypeOperatorFunction, SchedulerAction, SchedulerLike, TeardownLogic } from '../types';
import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
import { timeoutWith } from './timeoutWith';
import { throwError } from '../observable/throwError';

Expand Down
2 changes: 1 addition & 1 deletion src/internal/operators/timeoutWith.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Observable } from '../Observable';
import { isDate } from '../util/isDate';
import { OuterSubscriber } from '../OuterSubscriber';
import { subscribeToResult } from '../util/subscribeToResult';
import { ObservableInput, OperatorFunction, MonoTypeOperatorFunction, SchedulerAction, SchedulerLike, TeardownLogic } from '../types';
import { ObservableInput, OperatorFunction, SchedulerAction, SchedulerLike, TeardownLogic } from '../types';

/* tslint:disable:max-line-length */
export function timeoutWith<T, R>(due: number | Date, withObservable: ObservableInput<R>, scheduler?: SchedulerLike): OperatorFunction<T, T | R>;
Expand Down
2 changes: 0 additions & 2 deletions src/internal/symbol/observable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { root } from '../util/root';

/** Symbol.observable addition */
/* Note: This will add Symbol.observable globally for all TypeScript users,
however, we are no longer polyfilling Symbol.observable */
Expand Down
1 change: 0 additions & 1 deletion src/internal/util/isObservable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Observable } from '../Observable';
import { ObservableInput } from '../types';

/**
* Tests to see if the object is an RxJS {@link Observable}
Expand Down
1 change: 0 additions & 1 deletion src/internal/util/subscribeToResult.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ObservableInput } from '../types';
import { Subscription } from '../Subscription';
import { InnerSubscriber } from '../InnerSubscriber';
import { OuterSubscriber } from '../OuterSubscriber';
Expand Down