Skip to content

Commit 9401a92

Browse files
committed
remove addImportUnchecked
1 parent b0f56bc commit 9401a92

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptWriter.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ && getDependencies().stream().noneMatch(dep -> dep.getPackageName().equals(packa
167167
throw new CodegenException(
168168
"""
169169
The import %s does not correspond to a registered dependency.
170-
TypeScriptWriter::addDependency() is required before ::addImport(), or call ::addImportUnchecked().
170+
TypeScriptWriter::addDependency() is required before ::addImport().
171171
""".formatted(from)
172172
);
173173
}
@@ -177,18 +177,6 @@ && getDependencies().stream().noneMatch(dep -> dep.getPackageName().equals(packa
177177
return this;
178178
}
179179

180-
/**
181-
* Imports a type using an alias from a module only if necessary.
182-
* @return Returns the writer.
183-
*
184-
* @deprecated Use {@link TypeScriptWriter#addImport(String, String, TypeScriptDependency)} addImport}
185-
*/
186-
@Deprecated
187-
public TypeScriptWriter addImportUnchecked(String name, String as, String from) {
188-
getImportContainer().addImport(name, as, from);
189-
return this;
190-
}
191-
192180
/**
193181
* Imports a type using an alias from a module only if necessary.
194182
* Adds the dependency.

0 commit comments

Comments
 (0)