Commit e2b06a0c authored by liguofu@yeejoin.com's avatar liguofu@yeejoin.com

优化:【空工大】删除无用代码

parent a7bb0ad7
...@@ -668,24 +668,6 @@ public class ClientHandler<path> implements Runnable { ...@@ -668,24 +668,6 @@ public class ClientHandler<path> implements Runnable {
return new FileInputStream(fileTmpPath); return new FileInputStream(fileTmpPath);
} }
/**
* 按照指定数将一个list分割为多个list
*
* @param collection 源list
* @param size 按多少分割
* @param <T>
* @return
*/
// private static <T> List<List<T>> splitListBySize(Collection<T> collection, int size){
// if(size < 0){
// return null;
// }
// List<T> list = toArrayList(collection);
// // 计算可以拆分成几个list
// int count = (int) Math.ceil(list.size() / (double) size);
// // 使用流进行拆分
// return Stream.iterate(0,n->n+1).limit(count).map(i->list.stream().skip((long)i*size).limit(size).collect(Collectors.toList())).collect(Collectors.toList());
// }
//截取文件流 //截取文件流
public static InputStream intercept(InputStream is) throws IOException { public static InputStream intercept(InputStream is) throws IOException {
......
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