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.
This commit is contained in:
Juli Mallett 2003-06-09 09:47:38 +00:00
parent c4119c76f8
commit b52f85e743
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116086
2 changed files with 0 additions and 43 deletions

View File

@ -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 *);

View File

@ -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)
{