aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLiwei Lin <lwlin7@gmail.com>2016-03-26 12:41:34 +0000
committerSean Owen <sowen@cloudera.com>2016-03-26 12:41:34 +0000
commit62a85eb09f3e33d7b8948bb96c67859d712b34e3 (patch)
tree942abebabb86a7ae0b8aaf48bd095133b848fb0c /core
parent1808465855a8e2ce554b024ad5ff530457584aed (diff)
downloadspark-62a85eb09f3e33d7b8948bb96c67859d712b34e3.tar.gz
spark-62a85eb09f3e33d7b8948bb96c67859d712b34e3.tar.bz2
spark-62a85eb09f3e33d7b8948bb96c67859d712b34e3.zip
[SPARK-14089][CORE][MLLIB] Remove methods that has been deprecated since 1.1, 1.2, 1.3, 1.4, and 1.5
## What changes were proposed in this pull request? Removed methods that has been deprecated since 1.1, 1.2, 1.3, 1.4, and 1.5. ## How was this patch tested? - manully checked that no codes in Spark call these methods any more - existing test suits Author: Liwei Lin <lwlin7@gmail.com> Author: proflin <proflin.me@gmail.com> Closes #11910 from lw-lin/remove-deprecates.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/org/apache/spark/api/java/StorageLevels.java13
-rw-r--r--core/src/main/scala/org/apache/spark/SparkEnv.scala8
2 files changed, 0 insertions, 21 deletions
diff --git a/core/src/main/java/org/apache/spark/api/java/StorageLevels.java b/core/src/main/java/org/apache/spark/api/java/StorageLevels.java
index 840a1bd93b..666c797738 100644
--- a/core/src/main/java/org/apache/spark/api/java/StorageLevels.java
+++ b/core/src/main/java/org/apache/spark/api/java/StorageLevels.java
@@ -40,19 +40,6 @@ public class StorageLevels {
* Create a new StorageLevel object.
* @param useDisk saved to disk, if true
* @param useMemory saved to memory, if true
- * @param deserialized saved as deserialized objects, if true
- * @param replication replication factor
- */
- @Deprecated
- public static StorageLevel create(boolean useDisk, boolean useMemory, boolean deserialized,
- int replication) {
- return StorageLevel.apply(useDisk, useMemory, false, deserialized, replication);
- }
-
- /**
- * Create a new StorageLevel object.
- * @param useDisk saved to disk, if true
- * @param useMemory saved to memory, if true
* @param useOffHeap saved to Tachyon, if true
* @param deserialized saved as deserialized objects, if true
* @param replication replication factor
diff --git a/core/src/main/scala/org/apache/spark/SparkEnv.scala b/core/src/main/scala/org/apache/spark/SparkEnv.scala
index e2c47ceda2..700e2cb3f9 100644
--- a/core/src/main/scala/org/apache/spark/SparkEnv.scala
+++ b/core/src/main/scala/org/apache/spark/SparkEnv.scala
@@ -157,14 +157,6 @@ object SparkEnv extends Logging {
}
/**
- * Returns the ThreadLocal SparkEnv.
- */
- @deprecated("Use SparkEnv.get instead", "1.2.0")
- def getThreadLocal: SparkEnv = {
- env
- }
-
- /**
* Create a SparkEnv for the driver.
*/
private[spark] def createDriverEnv(