Skip to content

Commit 34fdf8b

Browse files
committed
blah3
1 parent 16365d4 commit 34fdf8b

1 file changed

Lines changed: 0 additions & 43 deletions

File tree

src/driver/src/main/java/com/edgedb/driver/EdgeDBConnection.java

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,49 +1756,6 @@ else if (key.startsWith("database")) {
17561756
}
17571757
}
17581758

1759-
/**
1760-
* Resolves a connection by traversing the current working directory and its parents to find a {@code edgedb.toml}
1761-
* file to use to create the {@linkplain EdgeDBConnection}.
1762-
*
1763-
* @return A resolved {@linkplain EdgeDBConnection}.
1764-
* @throws IOException No {@code edgedb.toml} file could be found, or one of its configuration files cannot be read.
1765-
* @throws ConfigurationException A cloud instance parameter is invalid OR the instance name is in an invalid
1766-
*/
1767-
public static @NotNull EdgeDBConnection OLDresolveEdgeDBTOML() throws IOException, ConfigurationException {
1768-
ResolvedFields resolvedFields = OLD_resolveEdgeDBTOML(ConfigUtils.getDefaultSystemProvider());
1769-
if (resolvedFields == null) {
1770-
throw new FileNotFoundException("Couldn't resolve edgedb.toml file");
1771-
}
1772-
return _fromResolvedFields(
1773-
resolvedFields,
1774-
ConfigUtils.getDefaultSystemProvider()
1775-
);
1776-
}
1777-
1778-
private static @Nullable ResolvedFields OLD_resolveEdgeDBTOML(
1779-
@NotNull SystemProvider provider
1780-
) throws IOException, ConfigurationException {
1781-
var dir = provider.getCurrentDirectory();
1782-
1783-
while (true) {
1784-
if (provider.fileExists(provider.combinePaths(dir, "edgedb.toml"))) {
1785-
return _fromProjectFile(provider.combinePaths(dir, "edgedb.toml"), provider);
1786-
}
1787-
1788-
if (provider.fileExists(provider.combinePaths(dir, "gel.toml"))) {
1789-
return _fromProjectFile(provider.combinePaths(dir, "gel.toml"), provider);
1790-
}
1791-
1792-
var parent = dir.getParent();
1793-
1794-
if (parent == null || !provider.directoryExists(parent)) {
1795-
throw new FileNotFoundException("Couldn't resolve edgedb.toml file");
1796-
}
1797-
1798-
dir = parent;
1799-
}
1800-
}
1801-
18021759
private void parseCloudInstanceName(
18031760
@NotNull String name,
18041761
@Nullable String cloudProfile,

0 commit comments

Comments
 (0)