Skip to content

Commit 5d80031

Browse files
committed
Remove unused messages from ErrorMessage
1 parent a25c092 commit 5d80031

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/ErrorMessages.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,10 @@ public abstract class ErrorMessages {
104104
public static final String CAN_ONLY_CONCAT_S_NOT_P_TO_S = "can only concatenate %s (not \"%p\") to %s";
105105
public static final String CAN_ONLY_JOIN_ITERABLE = "can only join an iterable";
106106
public static final String CANNOT_ASSIGN_TO = "cannot assign to %s";
107-
public static final String CANNOT_BE_INTEPRETED_AS_INT = "%s cannot be interpreted as int (type %p)";
108107
public static final String CANNOT_BE_INTEPRETED_AS_LONG = "%s cannot be interpreted as long (type %p)";
109108
public static final String CANNOT_BE_NEGATIVE = "%s cannot be negative";
110109
public static final String CANNOT_CALL_CTOR_OF = "cannot call constructor of %s";
111110
public static final String CANNOT_CLOSE_EXPORTED_PTRS_EXIST = "cannot close exported pointers exist";
112-
public static final String CANNOT_CONERT_DICT_UPDATE_SEQ = "cannot convert dictionary update sequence element #%d to a sequence";
113111
public static final String CANNOT_CONVERT_DICT_UPDATE_SEQ = "cannot convert dictionary update sequence element #%d to a sequence";
114112
public static final String CANNOT_CONVERT_FLOAT_F_TO_INT = "cannot convert float %f to integer";
115113
public static final String CANNOT_CONVERT_OBJ_TO_C_STRING = "Cannot convert object of type %p to C string.";
@@ -139,7 +137,6 @@ public abstract class ErrorMessages {
139137
public static final String CANNOT_SPECIFY_MEM_LIMIT = "Cannot specify memory limit with FORMAT_RAW";
140138
public static final String CANNOT_SPECIFY_PREST_AND_FILTER_CHAIN = "Cannot specify both preset and filter chain";
141139
public static final String CANNOT_USE_TO_INITIALIZE_ARRAY = "cannot use a %p to initialize an array with typecode '%s'";
142-
public static final String CANT_APPLY_THIS_S_TO_P_OBJECT = "can't apply this %s to %p object";
143140
public static final String CANT_CONCAT_S_TO_P = "can't concat %s to %p";
144141
public static final String CANT_CONVERT_TO_FLOAT = "can't convert %s to float";
145142
public static final String CANT_CONVERT_TO_STR_EXPLICITELY = "Can't convert '%p' object to str implicitly";
@@ -181,7 +178,6 @@ public abstract class ErrorMessages {
181178
public static final String DESC_S_FOR_S_DOESNT_APPLY_TO_S = "descriptor '%s' for '%s' objects doesn't apply to '%s' object";
182179
public static final String DESCRIPTOR_REQUIRES_OBJ = "descriptor '%s' requires a '%s' object but received a '%p'";
183180
public static final String DICT_CHANGED_DURING_COMPARISON = "dictionary changed during comparison operation";
184-
public static final String DICT_KEYS_CHANGED_DURING_ITERATION = "dictionary keys changed during iteration";
185181
public static final String CHANGED_SIZE_DURING_ITERATION = "%s changed size during iteration";
186182
public static final String DICT_MUST_BE_SET_TO_DICT = "__dict__ must have been set to a dictionary, not a '%p'";
187183
public static final String DICT_OF_P_OBJECTS_HAS_NO_ATTR = "'%p' dict of '%p' object has no attribute '__setitem__'";
@@ -235,7 +231,6 @@ public abstract class ErrorMessages {
235231
public static final String GENERATOR_ALREADY_EXECUTING = "generator already executing";
236232
public static final String GETTING_THER_SOURCE_NOT_SUPPORTED_FOR_P = "getting the source is not supported for '%p'";
237233
public static final String GLOBALS_MUST_BE_DICT = "%s() globals must be a dict, not %p";
238-
public static final String GOT_INVALID_CODESTRING = "got an invalid codestring trying to create a function code object";
239234
public static final String GOT_MULTIPLE_VALUES_FOR_ARG = "%s() got multiple values for argument '%s'";
240235
public static final String GOT_SOME_POS_ONLY_ARGS_PASSED_AS_KEYWORD = "%s() got some positional-only arguments passed as keyword arguments: '%s'";
241236
public static final String GOT_UNEXPECTED_KEYWORD_ARG = "%s() got an unexpected keyword argument '%s'";
@@ -378,15 +373,13 @@ public abstract class ErrorMessages {
378373
public static final String NONLOCAL_AND_GLOBAL = "name '%s' is nonlocal and global";
379374
public static final String NONLOCAL_AT_MODULE_LEVEL = "nonlocal declaration not allowed at module level";
380375
public static final String NON_HEX_DIGIT_FOUND = "Non-hexadecimal digit found";
381-
public static final String NON_STRING_IN_CODE_SLOT = "non-string found in code slot";
382376
public static final String NOT_A_ZIP_FILE = "not a Zip file: '%s'";
383377
public static final String NOT_ALL_ARGS_CONVERTED_DURING_FORMATTING = "not all arguments converted during %s formatting";
384378
public static final String NOT_ENOUGH_ARGS_FOR_FORMAT_STRING = "not enough arguments for format string";
385379
public static final String NOT_ENOUGH_VALUES_TO_UNPACK = "not enough values to unpack (expected %d, got %d)";
386380
public static final String NOT_SUPPORTED_BETWEEN_INSTANCES = "'%s' not supported between instances of '%p' and '%p'";
387381
public static final String NUMBER_S_CANNOT_FIT_INTO_INDEXSIZED_INT = "number %s cannot fit into index-sized integer";
388382
public static final String OBJ_INDEX_MUST_BE_INT_OR_SLICES = "%s indices must be integers or slices, not %p";
389-
public static final String OBJ_CANNOT_BE_INTERPRETED_AS_INT = "%s cannot be interpreted as int (type %p)";
390383
public static final String OBJ_CANNOT_BE_INTERPRETED_AS_INTEGER = "'%p' object cannot be interpreted as an int";
391384
public static final String OBJ_DOES_NOT_SUPPORT_INDEXING = "'%s' object does not support indexing";
392385
public static final String OBJ_DOES_NOT_SUPPORT_ITEM_ASSIGMENT = "'%s' object does not support item assignment";
@@ -417,7 +410,6 @@ public abstract class ErrorMessages {
417410
public static final String PYTHON_INT_TOO_LARGE_TO_CONV_TO = "Python int too large to convert to %s";
418411
public static final String PYTHON_INT_TOO_LARGE_TO_CONV_TO_C_TYPE = "Python int too large to convert to %s-byte C type";
419412
public static final String RANGE_OUT_OF_BOUNDS = "range index out of range";
420-
public static final String RANGE_DOES_NOT_SUPPORT = "range does not support %s, %s, %s";
421413
public static final String RAW_FORMAT_NOT_SUPPORTED = "RAW format unsupported";
422414
public static final String READ_BYTE_OUT_OF_RANGE = "read byte out of range";
423415
public static final String READ_WRITE_BYTELIKE_OBJ = "read-write bytes-like object";
@@ -431,13 +423,11 @@ public abstract class ErrorMessages {
431423
public static final String C_REQUIRES_INT_IN_BYTE_RANGE_OR_SINGLE_BYTE = "%%c requires an integer in range(256) or a single byte";
432424
public static final String REQUIRES_OBJ_THAT_IMPLEMENTS_S = " %%r requires an object that implements %s";
433425
public static final String REQUIRES_STRING_AS_LEFT_OPERAND = "'in <string>' requires string as left operand, not %P";
434-
public static final String RESULT_TOO_MANY_ITEMS = "%s result has too many items";
435426
public static final String RETURN_OUTSIDE_FUNC = "'return' outside function";
436427
public static final String S_RETURNED_BASE_WITH_UNSUITABLE_LAYOUT = "%s returned base with unsuitable layout ('%p')";
437428
public static final String RETURNED_NON_FLOAT = "%p.%s returned non-float (type %p)";
438429
public static final String RETURNED_NON_INT = "%s returned a non-int (type %p)";
439430
public static final String S_RETURNED_NON_CLASS = "%s returned a non-class ('%p')";
440-
public static final String P_S_RETURNED_NON_INT = "%p.%s returned a non int (type %p)";
441431
public static final String RETURNED_NON_INTEGER = "%s returned a non-integer";
442432
public static final String RETURNED_NON_INTEGRAL = "%s returned non-Integral (type %p)";
443433
public static final String RETURNED_NON_LONG = "%p.%s returned a non long (type %p)";
@@ -491,7 +481,6 @@ public abstract class ErrorMessages {
491481
public static final String TUPLE_ASSIGN_OUT_OF_BOUNDS = "tuple assignment index out of range";
492482
public static final String TUPLE_OUT_OF_BOUNDS = "tuple index out of range";
493483
public static final String TUPLE_OR_STRUCT_TIME_ARG_REQUIRED = "Tuple or struct_time argument required";
494-
public static final String TWO_STARRED_EXPRESSION_IN_ASSIGMENT = "two starred expressions in assignment";
495484
public static final String TYPE_DOES_NOT_PROVIDE_BASES = "type does not provide bases";
496485
public static final String TYPE_DOESNT_DEFINE_METHOD = "type %p doesn't define %s method";
497486
public static final String TYPE_IS_NOT_ACCEPTABLE_BASE_TYPE = "type '%p' is not an acceptable base type";

0 commit comments

Comments
 (0)