This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 972eabd146f Remove useless GlobalLockName (#34132)
972eabd146f is described below

commit 972eabd146fc90facc1b9e081faf03204c5c2067
Author: Liang Zhang <zhangli...@apache.org>
AuthorDate: Tue Dec 24 08:29:58 2024 +0800

    Remove useless GlobalLockName (#34132)
---
 .../mode/lock/global/GlobalLockDefinition.java     |  4 ---
 .../mode/lock/global/GlobalLockName.java           | 33 ----------------------
 2 files changed, 37 deletions(-)

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 a886d715dc8..76376151d59 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 b05d10e0d76..00000000000
--- 
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;
-}

Reply via email to