Skip to content

Commit

Permalink
chore: remove unused function from build system implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jan 28, 2025
1 parent cd0adef commit 73ba8e0
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { assertHardhatInvariant } from "@ignored/hardhat-vnext-errors";
import {
getAllDirectoriesMatching,
getAllFilesMatching,
isDirectory,
readJsonFile,
remove,
writeUtf8File,
Expand Down Expand Up @@ -451,32 +450,6 @@ export class SolidityBuildSystemImplementation implements SolidityBuildSystem {
};
}

async #groupEmitArtifactsResults(
filePaths: string[],
): Promise<Map<string, string[]>> {
const result = new Map<string, string[]>();

for (const filePath of filePaths) {
const relativePath = path.relative(this.#options.artifactsPath, filePath);
if (
path.dirname(relativePath) === "build-info" ||
path.basename(relativePath) === "artifacts.d.ts"
) {
continue;
}
if (await isDirectory(filePath)) {
result.set(relativePath, []);
} else {
const publicSourceName = path.dirname(relativePath);
const paths = result.get(publicSourceName) ?? [];
paths.push(filePath);
result.set(publicSourceName, paths);
}
}

return result;
}

public async emitArtifacts(
compilationJob: CompilationJob,
compilerOutput: CompilerOutput,
Expand Down

0 comments on commit 73ba8e0

Please sign in to comment.