[vlc-commits] npolibvlc: Remove unused method

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 21 10:15:48 CEST 2015


npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Mar 20 18:23:20 2015 +0100| [aff97d49132e4c8498792c1d8047fa06000d2417] | committer: Hugo Beauzée-Luyssen

npolibvlc: Remove unused method

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=aff97d49132e4c8498792c1d8047fa06000d2417
---

 npapi/npruntime/npolibvlc.cpp |   22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/npapi/npruntime/npolibvlc.cpp b/npapi/npruntime/npolibvlc.cpp
index 9e9349f..685d425 100644
--- a/npapi/npruntime/npolibvlc.cpp
+++ b/npapi/npruntime/npolibvlc.cpp
@@ -45,28 +45,6 @@
 #define ERROR_EVENT_NOT_FOUND "ERROR: One or more events could not be found."
 #define ERROR_API_VERSION "ERROR: NPAPI version not high enough. (Gecko >= 1.9 needed)"
 
-// Make a copy of an NPVariant.
-NPVariant copyNPVariant(const NPVariant& original)
-{
-    NPVariant res;
-
-    if (NPVARIANT_IS_STRING(original))
-        STRINGZ_TO_NPVARIANT(strdup(NPVARIANT_TO_STRING(original).UTF8Characters), res);
-    else if (NPVARIANT_IS_INT32(original))
-        INT32_TO_NPVARIANT(NPVARIANT_TO_INT32(original), res);
-    else if (NPVARIANT_IS_DOUBLE(original))
-        DOUBLE_TO_NPVARIANT(NPVARIANT_TO_DOUBLE(original), res);
-    else if (NPVARIANT_IS_OBJECT(original))
-    {
-        NPObject *obj = NPVARIANT_TO_OBJECT(original);
-        NPN_RetainObject(obj);
-        OBJECT_TO_NPVARIANT(obj, res);
-    }
-    else if (NPVARIANT_IS_BOOLEAN(original))
-        BOOLEAN_TO_NPVARIANT(NPVARIANT_TO_BOOLEAN(original), res);
-
-    return res;
-}
 
 /*
 ** implementation of libvlc root object



More information about the vlc-commits mailing list