mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
the mechanism for setting an SDK through project userdata isn't needed anymore, and most likely was never used
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.jetbrains.python.psi.impl;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.module.ModuleUtil;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -47,11 +46,6 @@ public class PyBuiltinCache {
|
||||
|
||||
private PyType STRING_TYPE_PY2 = null;
|
||||
|
||||
/**
|
||||
* Used in cases when a virtual file as absent in test mode; then the project may store its own SDK.
|
||||
*/
|
||||
public static final Key<Sdk> TEST_SDK = new Key<Sdk>("test.sdk.instance");
|
||||
|
||||
/**
|
||||
* Returns an instance of builtin cache. Instances differ per module and are cached.
|
||||
* @param reference something to define the module from.
|
||||
@@ -96,10 +90,6 @@ public class PyBuiltinCache {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
// did they store a test SDK for us?
|
||||
sdk = project.getUserData(TEST_SDK);
|
||||
}
|
||||
}
|
||||
return sdk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user