mirror of
https://github.com/desktop/desktop
synced 2024-09-18 07:32:01 +00:00
Remove unused parameter
This commit is contained in:
parent
10f6d70f11
commit
d9ed147d07
|
@ -17,11 +17,7 @@ import {
|
|||
ILargeTextDiff,
|
||||
} from '../../models/diff'
|
||||
import { Loading } from '../lib/loading'
|
||||
import {
|
||||
getFileContents,
|
||||
getLineFilters,
|
||||
IFileContents,
|
||||
} from './syntax-highlighting'
|
||||
import { getFileContents, IFileContents } from './syntax-highlighting'
|
||||
import { getTextDiffWithBottomDummyHunk } from './text-diff-expansion'
|
||||
|
||||
/**
|
||||
|
@ -257,11 +253,9 @@ export class SeamlessDiffSwitcher extends React.Component<
|
|||
|
||||
this.loadingState = { file: fileToLoad, diff }
|
||||
|
||||
const lineFilters = getLineFilters(diff.hunks)
|
||||
const fileContents = await getFileContents(
|
||||
this.props.repository,
|
||||
fileToLoad,
|
||||
lineFilters
|
||||
fileToLoad
|
||||
)
|
||||
|
||||
this.loadingState = null
|
||||
|
|
|
@ -106,8 +106,7 @@ async function getNewFileContent(
|
|||
|
||||
export async function getFileContents(
|
||||
repo: Repository,
|
||||
file: ChangedFile,
|
||||
lineFilters: ILineFilters
|
||||
file: ChangedFile
|
||||
): Promise<IFileContents> {
|
||||
const [oldContents, newContents] = await Promise.all([
|
||||
getOldFileContent(repo, file).catch(e => {
|
||||
|
|
Loading…
Reference in a new issue