Skip to content

Commit

Permalink
del[protobuf]: delete protobuf generate
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Oct 21, 2023
1 parent b380c80 commit b973ca5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.zfoo.protocol.serializer.go.GenerateGoUtils;
import com.zfoo.protocol.serializer.javascript.GenerateJsUtils;
import com.zfoo.protocol.serializer.lua.GenerateLuaUtils;
import com.zfoo.protocol.serializer.protobuf.GenerateProtobufUtils;
import com.zfoo.protocol.serializer.python.GeneratePyUtils;
import com.zfoo.protocol.serializer.typescript.GenerateTsUtils;

Expand Down Expand Up @@ -184,12 +183,6 @@ public static void generate(GenerateOperation generateOperation) throws IOExcept
}
}

// 生成Protobuf协议
if (generateLanguages.contains(CodeLanguage.Protobuf)) {
GenerateProtobufUtils.init(generateOperation);
GenerateProtobufUtils.createProtocolManager(allSortedGenerateProtocols);
GenerateProtobufUtils.createProtocols(allSortedGenerateProtocols);
}

// 预留参数,以后可能会用,比如给Lua修改一个后缀名称
var protocolParam = generateOperation.getProtocolParam();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import com.zfoo.protocol.serializer.go.GenerateGoUtils;
import com.zfoo.protocol.serializer.javascript.GenerateJsUtils;
import com.zfoo.protocol.serializer.lua.GenerateLuaUtils;
import com.zfoo.protocol.serializer.protobuf.GenerateProtobufUtils;
import com.zfoo.protocol.serializer.python.GeneratePyUtils;
import com.zfoo.protocol.serializer.reflect.*;
import com.zfoo.protocol.serializer.typescript.GenerateTsUtils;
Expand Down Expand Up @@ -392,7 +391,6 @@ private static void enhanceProtocolAfter(GenerateOperation generateOperation) {
GenerateLuaUtils.clear();
GenerateGdUtils.clear();
GeneratePyUtils.clear();
GenerateProtobufUtils.clear();
}

public static List<Field> getFields(Class<?> clazz) {
Expand Down

0 comments on commit b973ca5

Please sign in to comment.