summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-03-21 13:41:06 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-03-22 15:19:51 +0000
commit8afbacc6da4ad5ccaf931d113df175bef22cc7b1 (patch)
tree810a27f66dbdf2a667063bbe3a9be6b8ef395dd9 /dgit
parente1adbc736603409551756653090e4455562833af (diff)
Move stat_exists to Dgit.pm
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit7
1 files changed, 0 insertions, 7 deletions
diff --git a/dgit b/dgit
index a0144bc..ad6289d 100755
--- a/dgit
+++ b/dgit
@@ -185,13 +185,6 @@ sub changedir ($) {
chdir $newdir or die "chdir: $newdir: $!";
}
-sub stat_exists ($) {
- my ($f) = @_;
- return 1 if stat $f;
- return 0 if $!==&ENOENT;
- die "stat $f: $!";
-}
-
sub deliberately ($) {
return !!grep { $_[0] eq $_ } @deliberatelies;
}