Delete copying temporary version of config.toml into temporary files

Fixes #999
This commit is contained in:
Andrew Steinborn
2023-04-09 12:18:02 -04:00
parent 6a125bd08b
commit 2fa9f37481

View File

@@ -451,17 +451,6 @@ public class VelocityConfiguration implements ProxyConfig {
.build(); .build();
config.load(); config.load();
// Create temporary default configuration
File tmpFile = File.createTempFile("default-config", null);
tmpFile.deleteOnExit();
// Copy over default file to tmp location
try (InputStream in = defaultConfigLocation.openStream()) {
Files.copy(in, tmpFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
}
CommentedFileConfig defaultConfig = CommentedFileConfig.of(tmpFile, TomlFormat.instance());
defaultConfig.load();
// TODO: migrate this on Velocity Polymer // TODO: migrate this on Velocity Polymer
double configVersion; double configVersion;
try { try {