File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ && getDependencies().stream().noneMatch(dep -> dep.getPackageName().equals(packa
167
167
throw new CodegenException (
168
168
"""
169
169
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().
171
171
""" .formatted (from )
172
172
);
173
173
}
@@ -177,18 +177,6 @@ && getDependencies().stream().noneMatch(dep -> dep.getPackageName().equals(packa
177
177
return this ;
178
178
}
179
179
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
-
192
180
/**
193
181
* Imports a type using an alias from a module only if necessary.
194
182
* Adds the dependency.
You can’t perform that action at this time.
0 commit comments