Commit c3db8cf6 authored by Spencer Chang's avatar Spencer Chang

remove dead code

parent 45111d09
......@@ -7,7 +7,7 @@
* 禁止修改系统级别或业务系统基础数据
* DDL操作限制在内网环境使用
## v1-基础版本
## v1-基础版本(不建议使用)
### 直接判断sql语句关键字,校验sql有效性。
### 只支持单条语句执行并不需要结束符号。
......
......@@ -93,47 +93,4 @@ public class IPUtils {
}
return retVal.toString();
}
// private static final String inet6AddressToAscii(byte[] address) {
// int longestRunOffset = -1;
// int longestRunLength = 0;
// boolean var3 = false;
// boolean var4 = false;
// int var5 = false;
//
// for(int i = 0; i < address.length; i += 2) {
// int currentRunOffset;
// for(currentRunOffset = i; i < 16 && address[i] == 0 && address[i + 1] == 0; i += 2) {
// }
//
// int currentRunLength = i - currentRunOffset;
// if (currentRunLength > longestRunLength && currentRunLength >= 4) {
// longestRunOffset = currentRunOffset;
// longestRunLength = currentRunLength;
// }
// }
//
// Buffer result = new Buffer();
// int i = 0;
//
// while(i < address.length) {
// if (i == longestRunOffset) {
// result.writeByte(58);
// i += longestRunLength;
// if (i == 16) {
// result.writeByte(58);
// }
// } else {
// if (i > 0) {
// result.writeByte(58);
// }
//
// int group = Util.and(address[i], 255) << 8 | Util.and(address[i + 1], 255);
// result.writeHexadecimalUnsignedLong((long)group);
// i += 2;
// }
// }
//
// return result.readUtf8();
// }
}
......@@ -96,47 +96,4 @@ public class IPUtils {
}
return retVal.toString();
}
// private static final String inet6AddressToAscii(byte[] address) {
// int longestRunOffset = -1;
// int longestRunLength = 0;
// boolean var3 = false;
// boolean var4 = false;
// int var5 = false;
//
// for(int i = 0; i < address.length; i += 2) {
// int currentRunOffset;
// for(currentRunOffset = i; i < 16 && address[i] == 0 && address[i + 1] == 0; i += 2) {
// }
//
// int currentRunLength = i - currentRunOffset;
// if (currentRunLength > longestRunLength && currentRunLength >= 4) {
// longestRunOffset = currentRunOffset;
// longestRunLength = currentRunLength;
// }
// }
//
// Buffer result = new Buffer();
// int i = 0;
//
// while(i < address.length) {
// if (i == longestRunOffset) {
// result.writeByte(58);
// i += longestRunLength;
// if (i == 16) {
// result.writeByte(58);
// }
// } else {
// if (i > 0) {
// result.writeByte(58);
// }
//
// int group = Util.and(address[i], 255) << 8 | Util.and(address[i + 1], 255);
// result.writeHexadecimalUnsignedLong((long)group);
// i += 2;
// }
// }
//
// return result.readUtf8();
// }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment