Skip to content

Commit 2bc397e

Browse files
committed
deleteunusedfun
1 parent 0561c45 commit 2bc397e

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -201,22 +201,6 @@ private[spark] object Utils extends Logging {
201201
}
202202
}
203203

204-
// Is the path already registered to be deleted via a shutdown hook ?
205-
def hasShutdownDeleteDir(file: File): Boolean = {
206-
val absolutePath = file.getAbsolutePath()
207-
shutdownDeletePaths.synchronized {
208-
shutdownDeletePaths.contains(absolutePath)
209-
}
210-
}
211-
212-
// Is the path already registered to be deleted via a shutdown hook ?
213-
def hasShutdownDeleteTachyonDir(file: TachyonFile): Boolean = {
214-
val absolutePath = file.getPath()
215-
shutdownDeletePaths.synchronized {
216-
shutdownDeletePaths.contains(absolutePath)
217-
}
218-
}
219-
220204
// Note: if file is child of some registered path, while not equal to it, then return true;
221205
// else false. This is to ensure that two shutdown hooks do not try to delete each others
222206
// paths - resulting in IOException and incomplete cleanup.

0 commit comments

Comments
 (0)