Skip to content

Commit

Permalink
optimize the interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lightClouds917 committed Mar 4, 2025
1 parent fbdb9c1 commit 06fc305
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import java.util.Map;

import org.apache.seata.common.lock.ResourceLock;
import org.apache.seata.saga.proctrl.Instruction;

/**
Expand Down Expand Up @@ -99,9 +98,4 @@ public interface ProcessContext extends org.apache.seata.saga.proctrl.ProcessCon
*/
<T extends Instruction> T getInstruction(Class<T> clazz);

/**
* Gets get lock.
* @return the lock of the current process context
*/
ResourceLock getLock();
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import io.seata.saga.proctrl.HierarchicalProcessContext;
import io.seata.saga.proctrl.ProcessContext;
import org.apache.seata.common.lock.ResourceLock;
import org.apache.seata.saga.proctrl.Instruction;

/**
Expand All @@ -31,7 +30,6 @@
public class ProcessContextImpl implements HierarchicalProcessContext, ProcessContext {

private final org.apache.seata.saga.proctrl.HierarchicalProcessContext actual;
private final ResourceLock lock = new ResourceLock();

private ProcessContextImpl(org.apache.seata.saga.proctrl.HierarchicalProcessContext target) {
this.actual = target;
Expand Down Expand Up @@ -97,11 +95,6 @@ public <T extends Instruction> T getInstruction(Class<T> clazz) {
return actual.getInstruction(clazz);
}

@Override
public ResourceLock getLock() {
return lock;
}

@Override
public boolean hasVariableLocal(String name) {
return actual.hasVariableLocal(name);
Expand Down

0 comments on commit 06fc305

Please sign in to comment.