Skip to content

Commit 436dad6

Browse files
committed
remove checkTimestamps from Main
1 parent f320e6e commit 436dad6

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/Main.hs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -213,25 +213,6 @@ expandDirs = fmap concat . mapM each
213213
then listFortranFiles path
214214
else pure [path]
215215

216-
data TimestampStatus = NoSuchFile | CompileFile | ModFileExists FilePath
217-
218-
-- | Compare the source file timestamp to the fsmod file timestamp, if
219-
-- it exists.
220-
checkTimestamps :: FilePath -> IO TimestampStatus
221-
checkTimestamps path = do
222-
pathExists <- doesFileExist path
223-
modExists <- doesFileExist $ path -<.> modFileSuffix
224-
case (pathExists, modExists) of
225-
(False, _) -> pure NoSuchFile
226-
(True, False) -> pure CompileFile
227-
(True, True) -> do
228-
let modPath = path -<.> modFileSuffix
229-
pathModTime <- getModificationTime path
230-
modModTime <- getModificationTime modPath
231-
if pathModTime < modModTime
232-
then pure $ ModFileExists modPath
233-
else pure CompileFile
234-
235216
-- | Get a list of Fortran files under the given directory.
236217
listFortranFiles :: FilePath -> IO [FilePath]
237218
listFortranFiles dir = filter isFortran <$> listDirectoryRecursively dir

0 commit comments

Comments
 (0)