aboutsummaryrefslogtreecommitdiff
path: root/ide/ideutils.ml
diff options
context:
space:
mode:
authorpboutill2011-09-01 09:51:17 +0000
committerpboutill2011-09-01 09:51:17 +0000
commit0d727561aafcac28d036cddcb611e01109eca5dc (patch)
tree0f145062251b794ad5300c23bc5de298bb2af8a7 /ide/ideutils.ml
parent74a3cdbe96f9be6b74d18e00d59ee0f197b2a69c (diff)
same_file in Minilib
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14439 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide/ideutils.ml')
-rw-r--r--ide/ideutils.ml24
1 files changed, 0 insertions, 24 deletions
diff --git a/ide/ideutils.ml b/ide/ideutils.ml
index a27a621701..85e195dae6 100644
--- a/ide/ideutils.ml
+++ b/ide/ideutils.ml
@@ -337,30 +337,6 @@ let browse_keyword f text =
try let u = Lazy.force url_for_keyword text in browse f (doc_url() ^ u)
with Not_found -> f ("No documentation found for \""^text^"\".\n")
-
-(*
- checks if two file names refer to the same (existing) file by
- comparing their device and inode.
- It seems that under Windows, inode is always 0, so we cannot
- accurately check if
-
-*)
-(* Optimised for partial application (in case many candidates must be
- compared to f1). *)
-let same_file f1 =
- try
- let s1 = Unix.stat f1 in
- (fun f2 ->
- try
- let s2 = Unix.stat f2 in
- s1.Unix.st_dev = s2.Unix.st_dev &&
- if Sys.os_type = "Win32" then f1 = f2
- else s1.Unix.st_ino = s2.Unix.st_ino
- with
- Unix.Unix_error _ -> false)
- with
- Unix.Unix_error _ -> (fun _ -> false)
-
let absolute_filename f =
if Filename.is_relative f then
Filename.concat (Sys.getcwd ()) f