提交 c4340859 编写于 作者: wu-sheng's avatar wu-sheng

Remove unused config.

上级 cd87d0d7
......@@ -3,8 +3,6 @@ package com.a.eye.skywalking.api.conf;
public class Config {
public static class SkyWalking {
public static String USERNAME = "";
public static String APPLICATION_CODE = "";
public static boolean IS_PREMAIN_MODE = false;
......
......@@ -33,10 +33,6 @@ public class SnifferConfigInitializer {
}
}
String username = System.getProperty("username");
if (!StringUtil.isEmpty(username)) {
Config.SkyWalking.USERNAME = username;
}
String applicationCode = System.getProperty("applicationCode");
if (!StringUtil.isEmpty(applicationCode)) {
Config.SkyWalking.APPLICATION_CODE = applicationCode;
......@@ -46,9 +42,6 @@ public class SnifferConfigInitializer {
Config.SkyWalking.SERVERS = servers;
}
if (StringUtil.isEmpty(Config.SkyWalking.USERNAME)) {
throw new ExceptionInInitializerError("'-Dusername=' is missing.");
}
if (StringUtil.isEmpty(Config.SkyWalking.APPLICATION_CODE)) {
throw new ExceptionInInitializerError("'-DapplicationCode=' is missing.");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册