From 61eb719d73a0cef3908efca6867e1f248abe00c9 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 9 Dec 2011 18:33:56 +0100 Subject: [PATCH] the mechanism for setting an SDK through project userdata isn't needed anymore, and most likely was never used --- .../com/jetbrains/python/psi/impl/PyBuiltinCache.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/python/src/com/jetbrains/python/psi/impl/PyBuiltinCache.java b/python/src/com/jetbrains/python/psi/impl/PyBuiltinCache.java index 45318d295794..7cccb7c31d08 100644 --- a/python/src/com/jetbrains/python/psi/impl/PyBuiltinCache.java +++ b/python/src/com/jetbrains/python/psi/impl/PyBuiltinCache.java @@ -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 TEST_SDK = new Key("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; }