Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
[EX-563] Remove useWebRTC hook (#65)
Browse files Browse the repository at this point in the history
The hook is no longer needed as it’s a remainder from
membrane-webrtc-sdk
  • Loading branch information
graszka22 authored Jun 7, 2024
1 parent a56524b commit fc4bf2d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 166 deletions.
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1410,4 +1410,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 8daa796ed34dbeeeb2b648d198968b27b4c2ae8d

COCOAPODS: 1.13.0
COCOAPODS: 1.14.3
7 changes: 0 additions & 7 deletions src/__mocks__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ const emptyPromise = async (): Promise<void> => {
});
};

export const useWebRTC = () => {
return {
connect: emptyPromise,
disconnect: emptyPromise,
error: null,
};
};
export const useEndpoints = () => [];
export const setTargetTrackEncoding = emptyPromise;
export const useCamera = () => {
Expand Down
157 changes: 0 additions & 157 deletions src/hooks/useWebRTC.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export { useEndpoints } from './hooks/useEndpoints';
export { useMicrophone } from './hooks/useMicrophone';
export { useRTCStatistics } from './hooks/useRTCStatistics';
export { useScreencast } from './hooks/useScreencast';
export { useWebRTC } from './hooks/useWebRTC';

export {
updateAudioTrackMetadata,
Expand Down

0 comments on commit fc4bf2d

Please sign in to comment.