Skip to content
Merged
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
15 changes: 0 additions & 15 deletions src/components/Developer/logManagementHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ export async function cleanupLogFiles() {
await Promise.allSettled( olderLogs.map( ( { path } ) => unlink( path ) ) );
}

export async function deleteLegacyLogFile() {
try {
await unlink( legacyLogfilePath );
} catch ( deleteFileError ) {
if ( deleteFileError instanceof Error && deleteFileError.message.match( /no such file/ ) ) {
return;
}
throw deleteFileError;
}
}

const appVersion = getVersion();
const buildVersion = getBuildNumber();
const device = getSystemName();
Expand Down Expand Up @@ -129,10 +118,6 @@ async function emailLogFile( path: string ) {
);
}

export async function getLegacyLogfileExists() {
return exists( legacyLogfilePath );
}

export const temporaryLogForSharingPath
= `${TemporaryDirectoryPath}/${logFileNamePrefix}-recent.txt`;

Expand Down
Loading