diff --git a/generators/angular/support/reserved-keywords.ts b/generators/angular/support/reserved-keywords.ts index 4c63d2e972ad..ea8851dc3974 100644 --- a/generators/angular/support/reserved-keywords.ts +++ b/generators/angular/support/reserved-keywords.ts @@ -29,5 +29,3 @@ export const angularReservedKeywords = [ 'HTTP', 'ROUTER', ]; - -export const isReservedAngularKeyword = (keyword: string) => angularReservedKeywords.includes(keyword.toUpperCase()); diff --git a/generators/client/support/typescript.ts b/generators/client/support/typescript.ts index e65972cc0881..20c585432008 100644 --- a/generators/client/support/typescript.ts +++ b/generators/client/support/typescript.ts @@ -65,5 +65,3 @@ export const typescriptReservedKeywords = [ 'STATIC', 'YIELD', ]; - -export const isReservedTypescriptKeyword = (keyword: string) => typescriptReservedKeywords.includes(keyword.toUpperCase()); diff --git a/generators/gradle/internal/needles.ts b/generators/gradle/internal/needles.ts index 4c9cff52c98c..12a88652d666 100644 --- a/generators/gradle/internal/needles.ts +++ b/generators/gradle/internal/needles.ts @@ -116,13 +116,6 @@ export const addGradleDependenciesCallback = (dependencies: GradleDependency[]) contentToAdd: dependencies.map(serializeDependency), }); -/** @deprecated use addGradleDependenciesCallback */ -export const addGradleBuildSrcDependencyCallback = (dependency: GradleDependency) => - createNeedleCallback({ - needle: 'gradle-build-src-dependency', - contentToAdd: serializeDependency(dependency), - }); - export const addGradleDependenciesCatalogVersionCallback = (versions: GradleTomlVersion[]) => createNeedleCallback({ needle: 'gradle-dependency-catalog-version', @@ -153,13 +146,6 @@ export const addGradlePluginFromCatalogCallback = (plugins: GradleTomlPlugin[]) .map(({ pluginName }) => `alias(libs.plugins.${gradleNameToReference(pluginName)})`), }); -/** @deprecated use addGradleDependenciesCatalogVersionCallback */ -export const addGradleBuildSrcDependencyCatalogVersionCallback = ({ name, version }: GradleTomlVersion) => - createNeedleCallback({ - needle: 'gradle-build-src-dependency-catalog-version', - contentToAdd: `${name} = "${version}"`, - }); - export const addGradlePluginCallback = ({ id, version }: GradlePlugin) => createNeedleCallback({ needle: 'gradle-plugins', diff --git a/generators/java/support/files.ts b/generators/java/support/files.ts index 8271aa2fb56e..fc6e83d1dfb1 100644 --- a/generators/java/support/files.ts +++ b/generators/java/support/files.ts @@ -48,18 +48,9 @@ export const moveToJavaPackageSrcDir = (data: any, filePath: string) => export const moveToJavaPackageTestDir = (data: any, filePath: string) => `${data.javaPackageTestDir}${replaceEntityFilePathVariables(data, filePath) ?? ''}`; -export const moveToJavaEntityPackageSrcDir = (data: any, filePath: string) => - `${data.srcMainJava}${data.entityAbsoluteFolder}${replaceEntityFilePathVariables(data, filePath) ?? ''}`; - -export const moveToJavaEntityPackageTestDir = (data: any, filePath: string) => - `${data.srcTestJava}${data.entityAbsoluteFolder}${replaceEntityFilePathVariables(data, filePath) ?? ''}`; - export const moveToSrcMainResourcesDir = (data: any, filePath: string) => `${data.srcMainResources}${replaceEntityFilePathVariables(data, filePath) ?? ''}`; -export const moveToSrcTestResourcesDir = (data: any, filePath: string) => - `${data.srcTestResources}${replaceEntityFilePathVariables(data, filePath) ?? ''}`; - type RelativeWriteFileBlock = WriteFileBlock & { relativePath?: string }; export function javaMainPackageTemplatesBlock>( diff --git a/generators/java/support/java-formatting.ts b/generators/java/support/java-formatting.ts index 33f29d68a5fd..29de80ec0707 100644 --- a/generators/java/support/java-formatting.ts +++ b/generators/java/support/java-formatting.ts @@ -35,46 +35,3 @@ export const javaBeanCase = (beanName: string): string => { } return upperFirst(beanName); }; - -/** - * @private - * Create a java getter of reference. - * - * @param {object|string[]} reference - * @return {string} - */ -export const buildJavaGet = reference => { - let refPath; - if (typeof refPath === 'string') { - refPath = [reference]; - } else if (Array.isArray(reference)) { - refPath = reference; - } else { - refPath = [reference.name]; - } - return refPath.map(partialPath => `get${javaBeanCase(partialPath)}()`).join('.'); -}; - -/** - * @private - * Create a java getter method of reference. - * - * @param {object} reference - * @param {string} type - * @return {string} - */ -export const buildJavaGetter = (reference, type = reference.type) => { - return `${type} get${javaBeanCase(reference.name)}()`; -}; - -/** - * @private - * Create a java getter method of reference. - * - * @param {object} reference - * @param {string} valueDefinition - * @return {string} - */ -export const buildJavaSetter = (reference, valueDefinition = `${reference.type} ${reference.name}`) => { - return `set${javaBeanCase(reference.name)}(${valueDefinition})`; -}; diff --git a/generators/spring-data-cassandra/support/reserved-keywords.ts b/generators/spring-data-cassandra/support/reserved-keywords.ts index 81acbcdb9e94..9d77af4f619d 100644 --- a/generators/spring-data-cassandra/support/reserved-keywords.ts +++ b/generators/spring-data-cassandra/support/reserved-keywords.ts @@ -112,5 +112,3 @@ export const cassandraReservedKeywords = [ 'MACADDR', 'BITSTRING', ]; - -export const isReservedCassandraKeyword = (keyword: string) => cassandraReservedKeywords.includes(keyword.toUpperCase()); diff --git a/generators/spring-data-couchbase/support/reserved-keywords.ts b/generators/spring-data-couchbase/support/reserved-keywords.ts index f8e9c30a54c3..3a8feeb67be0 100644 --- a/generators/spring-data-couchbase/support/reserved-keywords.ts +++ b/generators/spring-data-couchbase/support/reserved-keywords.ts @@ -129,5 +129,3 @@ export const couchbaseReservedKeywords = [ 'WITH', 'WRITE', ]; - -export const isReservedCouchbaseKeyword = (keyword: string) => couchbaseReservedKeywords.includes(keyword.toUpperCase()); diff --git a/generators/spring-data-neo4j/support/reserved-keywords.ts b/generators/spring-data-neo4j/support/reserved-keywords.ts index e8ce6f33dbc5..7b79e83582cb 100644 --- a/generators/spring-data-neo4j/support/reserved-keywords.ts +++ b/generators/spring-data-neo4j/support/reserved-keywords.ts @@ -90,5 +90,3 @@ export const neo4jReservedKeywords = [ 'REQUIRE', 'SCALAR', ]; - -export const isReservedNeo4jKeyword = (keyword: string) => neo4jReservedKeywords.includes(keyword.toUpperCase()); diff --git a/generators/spring-data-relational/support/mssql-reserved-keywords.ts b/generators/spring-data-relational/support/mssql-reserved-keywords.ts index 9e21043bfaf8..66a2cdf72fe5 100644 --- a/generators/spring-data-relational/support/mssql-reserved-keywords.ts +++ b/generators/spring-data-relational/support/mssql-reserved-keywords.ts @@ -204,5 +204,3 @@ export const mssqlReservedKeywords = [ 'WITHIN GROUP', 'WRITETEXT', ]; - -export const isReservedMssqlKeyword = (keyword: string) => mssqlReservedKeywords.includes(keyword.toUpperCase()); diff --git a/generators/spring-data-relational/support/mysql-reserved-keywords.ts b/generators/spring-data-relational/support/mysql-reserved-keywords.ts index d53717dd55d1..9fc6a648a863 100644 --- a/generators/spring-data-relational/support/mysql-reserved-keywords.ts +++ b/generators/spring-data-relational/support/mysql-reserved-keywords.ts @@ -275,5 +275,3 @@ export const mysqlReservedKeywords = [ 'SLOW', 'WINDOW', ]; - -export const isReservedMysqlKeyword = (keyword: string) => mysqlReservedKeywords.includes(keyword.toUpperCase()); diff --git a/generators/spring-data-relational/support/oracle-reserved-keywords.ts b/generators/spring-data-relational/support/oracle-reserved-keywords.ts index 310fa3243d0f..0be9fa6c3b22 100644 --- a/generators/spring-data-relational/support/oracle-reserved-keywords.ts +++ b/generators/spring-data-relational/support/oracle-reserved-keywords.ts @@ -500,5 +500,3 @@ export const oracleReservedKeywords = [ 'YEAR', 'ZONE', ]; - -export const isReservedOracleKeyword = (keyword: string) => oracleReservedKeywords.includes(keyword.toUpperCase());