Skip to content

Commit

Permalink
qt-cpp: Remove unused code
Browse files Browse the repository at this point in the history
Change-Id: I4a9e12afdfbb28df5b4393bfe5ef7eb682b8f5b1
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
OrkunTokdemir committed Oct 2, 2024
1 parent 3993e9b commit a591f70
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions qt-cpp/src/kit-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import * as vscode from 'vscode';
import * as path from 'path';
import * as fsSync from 'fs';
import * as fs from 'fs/promises';
import * as os from 'os';
import * as commandExists from 'command-exists';

import {
Expand Down Expand Up @@ -429,7 +428,7 @@ export class KitManager {
}
const toolchain = path.basename(installation);
const tokens = toolchain.split('_');
let platform = tokens[0] ?? '';
const platform = tokens[0] ?? '';
if (platform != 'android') {
if (platform.startsWith('msvc')) {
newKit = {
Expand All @@ -446,8 +445,6 @@ export class KitManager {
yield* KitManager.generateMsvcKits(newKit, msvcKitsClone);
return;
} else if (platform.startsWith('mingw')) {
platform = os.platform();
logger.info(`Platform: ${platform}`);
const mingwDirPath = await promiseMingwPath;
logger.info(`Mingw dir path: ${mingwDirPath}`);
if (mingwDirPath) {
Expand All @@ -471,10 +468,7 @@ export class KitManager {
}
};
}
} else if (platform.startsWith('linux')) {
platform = 'linux';
} else if (platform.startsWith('macos')) {
platform = 'darwin';
newKit = {
...newKit,
...{
Expand Down

0 comments on commit a591f70

Please sign in to comment.