From a881f978bbca33d4079ed6515c279ff871f42479 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Wed, 7 Aug 2024 16:01:06 +0000 Subject: [PATCH] Make AbstractOption header-only. Disable unused finction in DVBSubs --- src/CMakeLists.txt | 3 ++- src/abstractoption.cc | 49 ------------------------------------------- src/dvbsubtitles.cc | 2 ++ 3 files changed, 4 insertions(+), 50 deletions(-) delete mode 100644 src/abstractoption.cc diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 63115d7..5796a17 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,7 +16,7 @@ set (VOMP_OBJ_COMMON wselectlist.cc wjpeg.cc wsymbol.cc wbutton.cc wtextbox.cc woptionpane.cc woptionbox.cc wremoteconfig.cc wtabbar.cc led.cc inputman.cc input.cc inputudp.cc inputlirc.cc vpicturebanner.cc - abstractoption.cc eventdispatcher.cc vdrrequestpacket.cc + eventdispatcher.cc vdrrequestpacket.cc vdrresponsepacket.cc vvideolivetv.cc sleeptimer.cc wprogressbar.cc bitmap.cc dvbsubtitles.cc tfeed.cc vteletextview.cc teletextdecodervbiebu.cc teletxt/txtfont.cc movieinfo.cc seriesinfo.cc @@ -25,6 +25,7 @@ set (VOMP_OBJ_COMMON playervideorec.cc playervideolive.cc playerradiolive.cc playerradiorec.cc imageloader.cc image.cc telem.cc ) +# abstractoption.cc set (VOMP_OBJ_RASPBERRY main.cc threadp.cc osdopenvg.cc ledraspberry.cc videoomx.cc audioomx.cc imageomx.cc diff --git a/src/abstractoption.cc b/src/abstractoption.cc deleted file mode 100644 index 6e9d13a..0000000 --- a/src/abstractoption.cc +++ /dev/null @@ -1,49 +0,0 @@ -/* - Copyright 2007-2008 Marten Richter - - This file is part of VOMP. - - VOMP 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. - - VOMP 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 VOMP; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ -#include "abstractoption.h" -#include "vdr.h" -#include "option.h" - -/* -bool AbstractOption::loadOptionsFromServer(VDR* vdr) -{ - return true; -} - -bool AbstractOption::saveOptionstoServer() -{ - return true; -} - -bool AbstractOption::addOptionPagesToWTB(WTabBar *wtb) -{ - return true; -} - -bool AbstractOption::addOptionsToPanes(int panenumber,Options *options,WOptionPane* pane) -{ - return true; -} - -bool AbstractOption::handleOptionChanges(Option* option) -{ - return false; -}*/ - diff --git a/src/dvbsubtitles.cc b/src/dvbsubtitles.cc index d038326..ba4adf2 100644 --- a/src/dvbsubtitles.cc +++ b/src/dvbsubtitles.cc @@ -489,6 +489,7 @@ void DVBSubtitleObject::decodeSubBlock(const u1* data, u4 length, bool even) } } +/* static u8 PTSDifference(u8 pts1, u8 pts2) { // Assume pts1, pts2 < 2^33; calculate pts1 - pts2 @@ -497,6 +498,7 @@ static u8 PTSDifference(u8 pts1, u8 pts2) else return (1LL<<33) + pts1 - pts2; } +*/ static i8 PTSDifference2(u8 now, u8 next) { -- 2.39.5