aboutsummaryrefslogtreecommitdiff
path: root/lib/libufs/type.c
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2003-06-09 09:47:38 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2003-06-09 09:47:38 +0000
commitb52f85e7436d1072b5a63be4fb4901b82f6ebc6d (patch)
treed135eff129af26d36fd7187dd0c9f46027f321c4 /lib/libufs/type.c
parentc4119c76f848837f1b81fe45c3a34936b61c9fdb (diff)
downloadsrc-b52f85e7436d1072b5a63be4fb4901b82f6ebc6d.tar.gz
src-b52f85e7436d1072b5a63be4fb4901b82f6ebc6d.zip
Remove ufs_disk_ctor and ufs_disk_dtor, they never came to fruition. I do
not know of any software using them, and there is no "published API" for libufs, as it were.
Notes
Notes: svn path=/head/; revision=116086
Diffstat (limited to 'lib/libufs/type.c')
-rw-r--r--lib/libufs/type.c41
1 files changed, 0 insertions, 41 deletions
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)
{