diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockDefinition.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockDefinition.java index a886d715dc86d..76376151d59f1 100644 --- a/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockDefinition.java +++ b/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockDefinition.java @@ -30,10 +30,6 @@ public final class GlobalLockDefinition implements LockDefinition { private final String lockKey; - public GlobalLockDefinition(final GlobalLockName lockName, final Object... lockParams) { - lockKey = String.format(KEY_PATTERN, String.format(lockName.getLockName(), lockParams)); - } - public GlobalLockDefinition(final GlobalLock globalLock) { lockKey = String.format(KEY_PATTERN, globalLock.getName()); } diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockName.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockName.java deleted file mode 100644 index b05d10e0d760c..0000000000000 --- a/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockName.java +++ /dev/null @@ -1,33 +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.shardingsphere.mode.lock.global; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * Global lock name. - */ -@RequiredArgsConstructor -@Getter -public enum GlobalLockName { - - STATISTICS("statistics"); - - private final String lockName; -}