Skip to content

Commit 2b9ee8c

Browse files
authored
Remove unused method (#17042)
1 parent 40b1d37 commit 2b9ee8c

2 files changed

Lines changed: 0 additions & 25 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PostmanCollectionCodegen.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -505,17 +505,6 @@ public String escapeQuotationMark(String input) {
505505
return input.replace("\"", "\\\"");
506506
}
507507

508-
public String doubleCurlyBraces(String str) {
509-
510-
// remove doublebraces first
511-
String s = str.replace("{{", "{").replace("}}", "}");
512-
// change all singlebraces to doublebraces
513-
s = s.replace("{", "{{").replace("}", "}}");
514-
515-
return s;
516-
517-
}
518-
519508
// convert path from /users/{id} to /users/:id
520509
String replacesBracesInPath(String path) {
521510

modules/openapi-generator/src/test/java/org/openapitools/codegen/postman/PostmanCollectionCodegenTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -364,20 +364,6 @@ public void testSecuritySchemes() throws Exception {
364364
assertFileNotContains(path, "\"auth\": { \"type\": \"apikey\", \"apikey\": [");
365365
}
366366

367-
@Test
368-
public void doubleCurlyBraces() {
369-
String str = "/api/{var}/archive";
370-
371-
assertEquals("/api/{{var}}/archive", new PostmanCollectionCodegen().doubleCurlyBraces(str));
372-
}
373-
374-
@Test
375-
public void doubleCurlyBracesNoChanges() {
376-
String str = "/api/{{var}}/archive";
377-
378-
assertEquals("/api/{{var}}/archive", new PostmanCollectionCodegen().doubleCurlyBraces(str));
379-
}
380-
381367
@Test
382368
public void extractExampleByName() {
383369
String str = "#/components/examples/get-user-basic";

0 commit comments

Comments
 (0)