Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzq7 committed Nov 1, 2022
1 parent 768d599 commit 625b911
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/io/mycat/backend/postgresql/utils/PacketUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,15 @@ public static ByteBuffer makeStartUpPacket(String user, String database)
paramList.add(new String[] { "extra_float_digits", "3" });
paramList.add(new String[] { "application_name", appName });
String[][] params = paramList.toArray(new String[0][]);
StringBuilder details = new StringBuilder();
for (int i = 0; i < params.length; ++i) {
if (i != 0) {
details.append(", ");
}
details.append(params[i][0]);
details.append("=");
details.append(params[i][1]);
}
// StringBuilder details = new StringBuilder();
// for (int i = 0; i < params.length; ++i) {
// if (i != 0) {
// details.append(", ");
// }
// details.append(params[i][0]);
// details.append("=");
// details.append(params[i][1]);
// }

/*
* Precalculate message length and encode params.
Expand Down

0 comments on commit 625b911

Please sign in to comment.