summaryrefslogtreecommitdiff
path: root/fdisk/sfdisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'fdisk/sfdisk.c')
-rw-r--r--fdisk/sfdisk.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fdisk/sfdisk.c b/fdisk/sfdisk.c
index 6e9e5697..d2155357 100644
--- a/fdisk/sfdisk.c
+++ b/fdisk/sfdisk.c
@@ -2411,19 +2411,6 @@ is_ide_cdrom_or_tape(char *device) {
return is_ide;
}
-static int
-is_probably_full_disk(char *name) {
- struct hd_geometry geometry;
- int fd, i = 0;
-
- fd = open(name, O_RDONLY);
- if (fd >= 0) {
- i = ioctl(fd, HDIO_GETGEO, &geometry);
- close(fd);
- }
- return (fd >= 0 && i == 0 && geometry.start == 0);
-}
-
#define PROC_PARTITIONS "/proc/partitions"
static FILE *procf = NULL;