Skip to content

Commit

Permalink
Remove the import logic of paging (#2837)
Browse files Browse the repository at this point in the history
* Remove the import logic of paging

* update

* update

* Revert "update"

This reverts commit 1603523.
  • Loading branch information
kazrael2119 authored Sep 24, 2024
1 parent 8b257fa commit 363400b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions packages/rlc-common/src/buildObjectTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@ export function buildObjectAliases(
isExported: true,
docs: [description ?? "Alias for " + modelName]
});
if (objectSchema.alias?.startsWith("Paged<")) {
importedModels.add("Paged");
}
}
}
return objectAliases;
Expand Down
9 changes: 0 additions & 9 deletions packages/rlc-common/src/buildSchemaType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ export function generateModelFiles(
modelsFile.addInterfaces(objectsDefinitions);
modelsFile.addTypeAliases(objectTypeAliases);
modelsFile.addTypeAliases(objectAliases);
if (importedModels.has("Paged")) {
modelsFile.addImportDeclarations([
{
namedImports: ["Paged"],
moduleSpecifier: "@azure/core-paging"
}
]);
importedModels.delete("Paged");
}
if (importedModels.size > 0) {
modelsFile.addImportDeclarations([
{
Expand Down

0 comments on commit 363400b

Please sign in to comment.