diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/constants/CommonConstants.java b/dubbo-common/src/main/java/org/apache/dubbo/common/constants/CommonConstants.java index 0cc9e06c6ff..76f647a22b8 100644 --- a/dubbo-common/src/main/java/org/apache/dubbo/common/constants/CommonConstants.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/common/constants/CommonConstants.java @@ -496,11 +496,6 @@ public interface CommonConstants { */ String URL_MERGE_PROCESSOR_KEY = "url-merge-processor"; - /** - * use native image to compile dubbo's identifier - */ - String NATIVE = "native"; - String DUBBO_MONITOR_ADDRESS = "dubbo.monitor.address"; String SERVICE_NAME_MAPPING_KEY = "service-name-mapping"; diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NativeUtils.java b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NativeUtils.java deleted file mode 100644 index 5ab9cff6af5..00000000000 --- a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NativeUtils.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.dubbo.common.utils; - -import static org.apache.dubbo.common.constants.CommonConstants.NATIVE; - -public abstract class NativeUtils { - - public static boolean isNative() { - return Boolean.parseBoolean(System.getProperty(NATIVE, "false")); - } - -}