mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Removed unused code
This commit is contained in:
@@ -46,7 +46,6 @@ public class NumPyDocString {
|
||||
private static final Pattern REDIRECT = Pattern.compile("^Refer to `(.*)` for full documentation.$");
|
||||
private static final Pattern NUMPY_UNION_PATTERN = Pattern.compile("^\\{(.*)\\}$");
|
||||
private static final Pattern NUMPY_ARRAY_PATTERN = Pattern.compile("(\\(\\.\\.\\..*\\))(.*)");
|
||||
private static final Pattern QUOTED_STRING_PATTERN = Pattern.compile("^(?:\\\"(.*)\\\")|(?:\\'(.*)\\')$");
|
||||
|
||||
private final String mySignature;
|
||||
private final List<NumPyDocStringParameter> myParameters = new ArrayList<NumPyDocStringParameter>();
|
||||
@@ -299,23 +298,6 @@ public class NumPyDocString {
|
||||
return Arrays.asList(typeString.split(" *, *"));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static Set<String> extractPermissibleArgumentsFromNumpyDocType(String typeString) {
|
||||
List<String> elements = getNumpyUnionType(cleanupOptional(typeString));
|
||||
Set<String> result = new LinkedHashSet<String>();
|
||||
for (String element : elements) {
|
||||
Matcher matcher = QUOTED_STRING_PATTERN.matcher(element);
|
||||
if (matcher.matches()) {
|
||||
if (matcher.group(1) != null) {
|
||||
result.add(matcher.group(1));
|
||||
} else if (matcher.group(2) != null) {
|
||||
result.add(matcher.group(2));
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static class NotNumpyDocStringException extends Exception {
|
||||
|
||||
public NotNumpyDocStringException(String signature) {
|
||||
|
||||
Reference in New Issue
Block a user