Remove redundant function declaration from App.tsx
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Michael Evans 2022-01-01 17:26:10 -06:00
parent 22dd92f339
commit 335efb23e1
1 changed files with 1 additions and 8 deletions

View File

@ -14,9 +14,9 @@ import { Waveform } from './Waveform';
import { ControlBar } from './ControlBar'; import { ControlBar } from './ControlBar';
import { SeekBar } from './SeekBar'; import { SeekBar } from './SeekBar';
import './App.css'; import './App.css';
import { Duration } from './generated/google/protobuf/duration';
import { firstValueFrom, from, Observable } from 'rxjs'; import { firstValueFrom, from, Observable } from 'rxjs';
import { first, map } from 'rxjs/operators'; import { first, map } from 'rxjs/operators';
import millisFromDuration from './helpers/millisFromDuration';
// ported from backend, where should they live? // ported from backend, where should they live?
const thumbnailWidth = 177; const thumbnailWidth = 177;
@ -391,13 +391,6 @@ function App(): JSX.Element {
export default App; export default App;
function millisFromDuration(dur?: Duration): number {
if (dur == undefined) {
return 0;
}
return Math.floor(dur.seconds * 1000.0 + dur.nanos / 1000.0 / 1000.0);
}
export function newRPC(): GrpcWebImpl { export function newRPC(): GrpcWebImpl {
return new GrpcWebImpl(apiURL, {}); return new GrpcWebImpl(apiURL, {});
} }