aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libufs/libufs.h2
-rw-r--r--lib/libufs/type.c41
2 files changed, 0 insertions, 43 deletions
diff --git a/lib/libufs/libufs.h b/lib/libufs/libufs.h
index 035f2a5cda2e..57062f9baa45 100644
--- a/lib/libufs/libufs.h
+++ b/lib/libufs/libufs.h
@@ -125,9 +125,7 @@ int sbwrite(struct uufsd *, int);
/*
* type.c
*/
-struct uufsd *ufs_disk_ctor(const char *);
int ufs_disk_close(struct uufsd *);
-void ufs_disk_dtor(struct uufsd **);
int ufs_disk_fillout(struct uufsd *, const char *);
int ufs_disk_fillout_blank(struct uufsd *, const char *);
int ufs_disk_write(struct uufsd *);
diff --git a/lib/libufs/type.c b/lib/libufs/type.c
index 47afff3a103e..c88da96baa7c 100644
--- a/lib/libufs/type.c
+++ b/lib/libufs/type.c
@@ -53,47 +53,6 @@ __FBSDID("$FreeBSD$");
/* Track if its fd points to a writable device. */
#define MINE_WRITE 0x02
-struct uufsd *
-ufs_disk_ctor(const char *name)
-{
- struct uufsd *new;
-
- new = NULL;
-
- ERROR(new, NULL);
-
- new = malloc(sizeof(*new));
- if (new == NULL) {
- ERROR(new, "unable to allocate memory for disk");
- return (NULL);
- }
-
- if (ufs_disk_fillout(new, name) == -1) {
- ERROR(new, "could not fill out disk");
- free(new);
- return (NULL);
- }
-
- return (new);
-}
-
-void
-ufs_disk_dtor(struct uufsd **diskp)
-{
- struct uufsd *disk;
-
- if (diskp != NULL)
- disk = *diskp;
- else
- return;
-
- ERROR(disk, NULL);
-
- ufs_disk_close(disk);
- free(disk);
- *diskp = NULL;
-}
-
int
ufs_disk_close(struct uufsd *disk)
{