[vlc-commits] Remove unused code
Hugo Beauzée-Luyssen
git at videolan.org
Tue Apr 21 10:15:50 CEST 2015
npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Mar 24 11:08:32 2015 +0100| [56aa063fd2c27bceb82d1b7fb91943d4c51cc0c7] | committer: Hugo Beauzée-Luyssen
Remove unused code
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=56aa063fd2c27bceb82d1b7fb91943d4c51cc0c7
---
common/vlc_player_options.h | 8 --------
npapi/vlcplugin_gtk.cpp | 4 ----
npapi/vlcplugin_gtk.h | 1 -
3 files changed, 13 deletions(-)
diff --git a/common/vlc_player_options.h b/common/vlc_player_options.h
index 8b3b789..18b3fa0 100644
--- a/common/vlc_player_options.h
+++ b/common/vlc_player_options.h
@@ -69,28 +69,24 @@ public:
void set_autoplay(bool ap){
_autoplay = ap;
- on_option_change(po_autoplay);
}
bool get_autoplay() const
{return _autoplay;}
void set_show_toolbar(bool st){
_show_toolbar = st;
- on_option_change(po_show_toolbar);
}
bool get_show_toolbar() const
{return _show_toolbar;}
void set_enable_fs(bool ef){
_enable_fullscreen = ef;
- on_option_change(po_enable_fullscreen);
}
bool get_enable_fs() const
{return _enable_fullscreen;}
void set_bg_text(const std::string& bt){
_bg_text = bt;
- on_option_change(po_bg_text);
}
const std::string& get_bg_text() const {
return _bg_text;
@@ -98,7 +94,6 @@ public:
void set_bg_color(const std::string& bc){
_bg_color = bc;
- on_option_change(po_bg_color);
}
const std::string& get_bg_color() const {
return _bg_color;
@@ -106,13 +101,10 @@ public:
void set_enable_branding(bool st){
_enable_branding = st;
- on_option_change(po_enable_branding);
}
bool get_enable_branding() const
{return _enable_branding;}
- virtual void on_option_change(vlc_player_option_e ){};
-
private:
bool _autoplay;
bool _show_toolbar;
diff --git a/npapi/vlcplugin_gtk.cpp b/npapi/vlcplugin_gtk.cpp
index e72c40c..744a75d 100644
--- a/npapi/vlcplugin_gtk.cpp
+++ b/npapi/vlcplugin_gtk.cpp
@@ -55,10 +55,6 @@ VlcPluginGtk::VlcPluginGtk(NPP instance, NPuint16_t mode) :
}
}
-VlcPluginGtk::~VlcPluginGtk()
-{
-}
-
void VlcPluginGtk::set_player_window()
{
player().get_mp().setXwindow( video_xwindow);
diff --git a/npapi/vlcplugin_gtk.h b/npapi/vlcplugin_gtk.h
index cef8b5c..072bb7f 100644
--- a/npapi/vlcplugin_gtk.h
+++ b/npapi/vlcplugin_gtk.h
@@ -35,7 +35,6 @@ class VlcPluginGtk : public VlcPluginBase
{
public:
VlcPluginGtk(NPP, NPuint16_t);
- virtual ~VlcPluginGtk();
bool create_windows();
bool resize_windows();
More information about the vlc-commits
mailing list