[vlc-commits] network: remove unused net_vaPrintf()
Rémi Denis-Courmont
git at videolan.org
Sun Nov 11 16:33:41 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 10 15:19:00 2018 +0200| [f00eeaf27b9f1fa5d340bd7c0769b0c82906e1a8] | committer: Rémi Denis-Courmont
network: remove unused net_vaPrintf()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f00eeaf27b9f1fa5d340bd7c0769b0c82906e1a8
---
include/vlc_network.h | 3 ---
src/libvlccore.sym | 1 -
src/network/io.c | 17 -----------------
3 files changed, 21 deletions(-)
diff --git a/include/vlc_network.h b/include/vlc_network.h
index 9a3e9675da..37469c250f 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -199,9 +199,6 @@ VLC_API ssize_t net_Read( vlc_object_t *p_this, int fd, void *p_data, size_t i_d
VLC_API ssize_t net_Write( vlc_object_t *p_this, int fd, const void *p_data, size_t i_data );
#define net_Write(a,b,c,d) net_Write(VLC_OBJECT(a),b,c,d)
-VLC_API ssize_t net_vaPrintf( vlc_object_t *p_this, int fd, const char *psz_fmt, va_list args );
-#define net_vaPrintf(a,b,c,d) net_vaPrintf(VLC_OBJECT(a),b,c,d)
-
VLC_API int vlc_close(int);
/** @} */
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 02c02bc5dc..eb30c4ff25 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -291,7 +291,6 @@ net_OpenDgram
net_Printf
net_Read
net_SetCSCov
-net_vaPrintf
net_Write
NTPtime64
picture_BlendSubpicture
diff --git a/src/network/io.c b/src/network/io.c
index 7fea132724..7f00c87668 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -444,20 +444,3 @@ ssize_t (net_Write)(vlc_object_t *obj, int fd, const void *buf, size_t len)
return written;
}
-
-#undef net_vaPrintf
-ssize_t net_vaPrintf( vlc_object_t *p_this, int fd,
- const char *psz_fmt, va_list args )
-{
- char *psz;
- int i_ret;
-
- int i_size = vasprintf( &psz, psz_fmt, args );
- if( i_size == -1 )
- return -1;
- i_ret = net_Write( p_this, fd, psz, i_size ) < i_size
- ? -1 : i_size;
- free( psz );
-
- return i_ret;
-}
More information about the vlc-commits
mailing list