Skip to content

Commit 73ba8e0

Browse files
committed
chore: remove unused function from build system implementation
1 parent cd0adef commit 73ba8e0

File tree

1 file changed

+0
-27
lines changed
  • v-next/hardhat/src/internal/builtin-plugins/solidity/build-system

1 file changed

+0
-27
lines changed

v-next/hardhat/src/internal/builtin-plugins/solidity/build-system/build-system.ts

-27
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { assertHardhatInvariant } from "@ignored/hardhat-vnext-errors";
2525
import {
2626
getAllDirectoriesMatching,
2727
getAllFilesMatching,
28-
isDirectory,
2928
readJsonFile,
3029
remove,
3130
writeUtf8File,
@@ -451,32 +450,6 @@ export class SolidityBuildSystemImplementation implements SolidityBuildSystem {
451450
};
452451
}
453452

454-
async #groupEmitArtifactsResults(
455-
filePaths: string[],
456-
): Promise<Map<string, string[]>> {
457-
const result = new Map<string, string[]>();
458-
459-
for (const filePath of filePaths) {
460-
const relativePath = path.relative(this.#options.artifactsPath, filePath);
461-
if (
462-
path.dirname(relativePath) === "build-info" ||
463-
path.basename(relativePath) === "artifacts.d.ts"
464-
) {
465-
continue;
466-
}
467-
if (await isDirectory(filePath)) {
468-
result.set(relativePath, []);
469-
} else {
470-
const publicSourceName = path.dirname(relativePath);
471-
const paths = result.get(publicSourceName) ?? [];
472-
paths.push(filePath);
473-
result.set(publicSourceName, paths);
474-
}
475-
}
476-
477-
return result;
478-
}
479-
480453
public async emitArtifacts(
481454
compilationJob: CompilationJob,
482455
compilerOutput: CompilerOutput,

0 commit comments

Comments
 (0)