remove some internal deprecations

This commit is contained in:
FalsePattern committed 2023-07-16 13:03:51 +02:00
1 parent 0c761207bd
commit a0f342d854
3 files changed
-23

No files matched your search

@@ -110,13 +110,6 @@ public final class ConfigurationManagerImpl {
return parsed.validate(invalidFieldHandler, resetInvalid);
}
@Deprecated
public static void registerLoadSaveConfig(Class<?> configClass) throws ConfigException {
register(configClass);
load(configClass);
save(configClass);
}
public static void sendRequest(DataOutput output) throws IOException {
val synced = new ArrayList<Class<?>>();
val inv = serializedNames.inverse();
@@ -147,12 +147,6 @@ public class DependencyLoaderImpl {
mavenRepositories.add(url);
}
@Deprecated
public static void loadLibrary(@NonNull String loadingModId, @NonNull String groupId, @NonNull String artifactId, @NonNull Version minVersion, Version maxVersion, @NonNull Version preferredVersion, String regularSuffix, String devSuffix) {
new DependencyLoadTask(loadingModId, groupId, artifactId, minVersion, maxVersion, preferredVersion,
regularSuffix, devSuffix).load();
}
private static String bytesToHex(byte[] hash) {
StringBuilder hexString = new StringBuilder(2 * hash.length);
for (byte b : hash) {
@@ -173,16 +173,6 @@ public class UniversalMethod {
return invoke(null, arguments);
}
/**
* This is only here for completeness' sake, given that MethodInsnNode itself also has a deprecated yet functional constructor.
*/
@Deprecated
@StableAPI.Expose
public MethodInsnNode asInstruction(int opcode, MappingType mapping) {
return new MethodInsnNode(opcode, parent.getName(NameType.Internal, mapping), getName(mapping),
getDescriptor(mapping));
}
@StableAPI.Expose
public MethodInsnNode asInstruction(int opcode, MappingType mapping, boolean itf) {
return new MethodInsnNode(opcode, parent.getName(NameType.Internal, mapping), getName(mapping),