Skip to content

Commit 077eed1

Browse files
committed
style fixes
1 parent a66c570 commit 077eed1

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/MarshalModuleBuiltins.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
import com.oracle.truffle.api.frame.VirtualFrame;
9292
import com.oracle.truffle.api.interop.UnsupportedMessageException;
9393
import com.oracle.truffle.api.library.CachedLibrary;
94-
import com.oracle.truffle.api.profiles.ConditionProfile;
9594
import com.oracle.truffle.api.source.SourceSection;
9695

9796
@CoreFunctions(defineModule = "marshal")

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/HashingStorage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public HashingStorage addAllToOther(HashingStorage other,
329329
}
330330

331331
@ExportMessage
332-
public boolean equalsWithState(HashingStorage other, ThreadState state,
332+
public boolean equalsWithState(HashingStorage other, @SuppressWarnings("unused") ThreadState state,
333333
@CachedLibrary(limit = "2") HashingStorageLibrary lib) {
334334
if (this == other) {
335335
return true;
@@ -408,7 +408,7 @@ HashingStorage[] doit(HashingStorage[] accumulator, Object key,
408408
}
409409

410410
@ExportMessage
411-
public int compareEntriesWithState(HashingStorage other, ThreadState state,
411+
public int compareEntriesWithState(HashingStorage other, @SuppressWarnings("unused") ThreadState state,
412412
@CachedLibrary(limit = "2") HashingStorageLibrary lib,
413413
@Cached TestKeyValueEqual testNode) {
414414
if (this == other) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/dict/PDict.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static boolean hasBuiltinLen(PDict self, LookupInheritedAttributeNode.Dynamic lo
113113
@Specialization(guards = {
114114
"isBuiltin(self, profile) || hasBuiltinLen(self, lookupSelf, lookupDict)"
115115
}, limit = "1")
116-
static int doBuiltin(PDict self, ThreadState state,
116+
static int doBuiltin(PDict self, @SuppressWarnings("unused") ThreadState state,
117117
@CachedLibrary("self.getDictStorage()") HashingStorageLibrary storageLib,
118118
@SuppressWarnings("unused") @Cached IsBuiltinClassProfile profile,
119119
@SuppressWarnings("unused") @Cached LookupInheritedAttributeNode.Dynamic lookupSelf,

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/set/PBaseSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public PBaseSet(Object clazz, Shape instanceShape, HashingStorage set) {
4848
}
4949

5050
@ExportMessage(limit = "1")
51-
int lengthWithState(ThreadState state,
51+
int lengthWithState(@SuppressWarnings("unused") ThreadState state,
5252
@CachedLibrary("this.getDictStorage()") HashingStorageLibrary lib) {
5353
return lib.length(storage);
5454
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/attributes/ReadAttributeFromObjectNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ protected static Object readFromBuiltinModuleDict(PythonModule object, String ke
146146
"!isHiddenKey(key)",
147147
"dict != null"
148148
}, replaces = "readFromBuiltinModuleDict")
149-
protected static Object readFromDict(PythonObject object, Object key,
150-
@CachedLibrary(limit = "MAX_DICT_TYPES") PythonObjectLibrary lib,
149+
protected static Object readFromDict(@SuppressWarnings("unused") PythonObject object, Object key,
150+
@SuppressWarnings("unused") @CachedLibrary(limit = "MAX_DICT_TYPES") PythonObjectLibrary lib,
151151
@Bind("lib.getDict(object)") PDict dict,
152152
@CachedLibrary(limit = "MAX_DICT_TYPES") HashingStorageLibrary hlib) {
153153
Object value = hlib.getItem(dict.getDictStorage(), key);

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/builtins/FunctionNodes.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@
5050
import com.oracle.graal.python.nodes.PGuards;
5151
import com.oracle.graal.python.nodes.PNodeWithContext;
5252
import com.oracle.graal.python.nodes.builtins.FunctionNodesFactory.GetDefaultsNodeGen;
53-
import com.oracle.graal.python.nodes.builtins.FunctionNodesFactory.GetFunctionCodeNodeGen;
54-
import com.oracle.graal.python.nodes.builtins.FunctionNodesFactory.GetFunctionDefaultsNodeGen;
55-
import com.oracle.graal.python.nodes.builtins.FunctionNodesFactory.GetFunctionKeywordDefaultsNodeGen;
5653
import com.oracle.graal.python.nodes.builtins.FunctionNodesFactory.GetKeywordDefaultsNodeGen;
5754
import com.oracle.graal.python.nodes.builtins.FunctionNodesFactory.GetSignatureNodeGen;
5855
import com.oracle.truffle.api.Assumption;

0 commit comments

Comments
 (0)