From: VMware, Inc <> Date: Fri, 12 Apr 2013 19:52:46 +0000 (-0700) Subject: HGFS: remove some unused server code X-Git-Tag: 2013.04.16-1098359~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1787d533b95dc89cb6f8c3f8de4a60075f83ba2e;p=thirdparty%2Fopen-vm-tools.git HGFS: remove some unused server code Remove the HgfsVaIov and the unused HSPU_GetDataPacketIov that used it. If we needed it is not clear and what the rationale for any expected usage was not commented. So removed it. Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/hgfsServer/hgfsServerPacketUtil.c b/open-vm-tools/lib/hgfsServer/hgfsServerPacketUtil.c index 0831f147e..925455b31 100644 --- a/open-vm-tools/lib/hgfsServer/hgfsServerPacketUtil.c +++ b/open-vm-tools/lib/hgfsServer/hgfsServerPacketUtil.c @@ -158,33 +158,6 @@ HSPU_GetMetaPacket(HgfsPacket *packet, // IN/OUT: Hgfs Packet } -/* - *----------------------------------------------------------------------------- - * - * HSPU_GetDataPacketIov -- - * - * Get a data packet in an iov form given an hgfs packet. - * Guest mappings will be established. - * - * Results: - * Pointer to data packet iov. - * - * Side effects: - * Buffer may be allocated. - *----------------------------------------------------------------------------- - */ - -void * -HSPU_GetDataPacketIov(HgfsPacket *packet, // IN/OUT: Hgfs Packet - HgfsTransportSessionInfo *transportSession, // IN: Session Info - HgfsVaIov iov) // OUT: I/O vector -{ - NOT_IMPLEMENTED(); - return NULL; - -} - - /* *----------------------------------------------------------------------------- * diff --git a/open-vm-tools/lib/include/hgfsServer.h b/open-vm-tools/lib/include/hgfsServer.h index 1508afdb0..c497cb061 100644 --- a/open-vm-tools/lib/include/hgfsServer.h +++ b/open-vm-tools/lib/include/hgfsServer.h @@ -43,12 +43,6 @@ struct HgfsVmxIov { char *token; /* Token for physMem_ APIs */ } HgfsVmxIov; -typedef -struct HgfsVaIov { - void *va; - uint32 len; -}HgfsVaIov; - typedef enum { BUF_READABLE, /* Establish readable mappings */ BUF_WRITEABLE, /* Establish writeable mappings */