Skip to content

Commit aa03be7

Browse files
committed
Clean up old code
1 parent ed14c51 commit aa03be7

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

modules/swagger-codegen/src/main/resources/Java/apiInvoker.mustache

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,6 @@ public class ApiInvoker {
119119
return contentTypes[0];
120120
}
121121

122-
public static String joinString(String[] array, String separator) {
123-
int len = array.length;
124-
if (len == 0) return "";
125-
126-
StringBuilder out = new StringBuilder();
127-
out.append(array[0]);
128-
for (int i = 1; i < len; i++) {
129-
out.append(separator).append(array[i]);
130-
}
131-
return out.toString();
132-
}
133-
134122
public void enableDebug() {
135123
isDebug = true;
136124
}

samples/client/petstore/java/src/main/java/io/swagger/client/ApiInvoker.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,6 @@ public static String selectHeaderContentType(String[] contentTypes) {
119119
return contentTypes[0];
120120
}
121121

122-
public static String joinString(String[] array, String separator) {
123-
int len = array.length;
124-
if (len == 0) return "";
125-
126-
StringBuilder out = new StringBuilder();
127-
out.append(array[0]);
128-
for (int i = 1; i < len; i++) {
129-
out.append(separator).append(array[i]);
130-
}
131-
return out.toString();
132-
}
133-
134122
public void enableDebug() {
135123
isDebug = true;
136124
}

0 commit comments

Comments
 (0)