[vlc-commits] Remove useless classinfo.h

Jean-Baptiste Kempf git at videolan.org
Thu Apr 24 12:25:05 CEST 2014


npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr 24 12:24:43 2014 +0200| [c1e184f79882cfc9697130dce86daf8c33fb5dac] | committer: Jean-Baptiste Kempf

Remove useless classinfo.h

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

 npapi/Makefile.am         |    3 +--
 npapi/support/classinfo.h |   58 ---------------------------------------------
 2 files changed, 1 insertion(+), 60 deletions(-)

diff --git a/npapi/Makefile.am b/npapi/Makefile.am
index 736953c..f4ee597 100644
--- a/npapi/Makefile.am
+++ b/npapi/Makefile.am
@@ -28,8 +28,7 @@ libvlcplugin_la_SOURCES = \
 	npruntime/npolibvlc.cpp \
 	npruntime/npolibvlc.h \
 	npruntime/nporuntime.cpp \
-	npruntime/nporuntime.h \
-	support/classinfo.h
+	npruntime/nporuntime.h
 
 libvlcplugin_la_DEPENDENCIES =
 libvlcplugin_la_LIBADD = ../common/libvlcplugin_common.la $(LIBVLC_LIBS)
diff --git a/npapi/support/classinfo.h b/npapi/support/classinfo.h
deleted file mode 100644
index bd7e838..0000000
--- a/npapi/support/classinfo.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*****************************************************************************
- * classinfo.h: helper class to implement all necessary nsIClassInfo methods
- *****************************************************************************
- * Copyright (C) 2002-2012 VideoLAN
- * $Id$
- *
- * Authors: Samuel Hocevar <sam at zoy.org>
- *          Damien Fouilleul <damienf.fouilleul at laposte.net>
- *          Jean-Paul Saman <jpsaman at videolan.org>
- *          Sergey Radionov <rsatom at gmail.com>
- *          Jean-Baptiste Kempf <jb at videolan.org>
- *          Cheng Sun <chengsun9 at gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-#include "nsIClassInfo.h"
-
-// helper class to implement all necessary nsIClassInfo method stubs
-// and to set flags used by the security system
-class  ClassInfo : public nsIClassInfo
-{
-  // These flags are used by the DOM and security systems to signal that
-  // JavaScript callers are allowed to call this object's scritable methods.
-  NS_IMETHOD GetFlags(PRUint32 *aFlags)
-    {*aFlags = nsIClassInfo::PLUGIN_OBJECT | nsIClassInfo::DOM_OBJECT;
-     return NS_OK;}
-  NS_IMETHOD GetImplementationLanguage(PRUint32 *aImplementationLanguage)
-    {*aImplementationLanguage = nsIProgrammingLanguage::CPLUSPLUS;
-     return NS_OK;}
-
-  // The rest of the methods can safely return error codes...
-  NS_IMETHOD GetInterfaces(PRUint32 *count, nsIID * **array)
-    {return NS_ERROR_NOT_IMPLEMENTED;}
-  NS_IMETHOD GetHelperForLanguage(PRUint32 language, nsISupports **_retval)
-    {return NS_ERROR_NOT_IMPLEMENTED;}
-  NS_IMETHOD GetContractID(char * *aContractID)
-    {return NS_ERROR_NOT_IMPLEMENTED;}
-  NS_IMETHOD GetClassDescription(char * *aClassDescription)
-    {return NS_ERROR_NOT_IMPLEMENTED;}
-  NS_IMETHOD GetClassID(nsCID * *aClassID)
-    {return NS_ERROR_NOT_IMPLEMENTED;}
-  NS_IMETHOD GetClassIDNoAlloc(nsCID *aClassIDNoAlloc)
-    {return NS_ERROR_NOT_IMPLEMENTED;}
-};
-



More information about the vlc-commits mailing list