summaryrefslogtreecommitdiffstats
path: root/plugins/lirc/lircsupport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/lirc/lircsupport.cpp')
-rw-r--r--plugins/lirc/lircsupport.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/plugins/lirc/lircsupport.cpp b/plugins/lirc/lircsupport.cpp
index 8fef92f..adb4bb1 100644
--- a/plugins/lirc/lircsupport.cpp
+++ b/plugins/lirc/lircsupport.cpp
@@ -17,9 +17,7 @@
#include "lircsupport.h"
-#ifdef HAVE_LIRC
#include <lirc/lirc_client.h>
-#endif
#include <tqsocketnotifier.h>
#include <tqtimer.h>
@@ -43,9 +41,7 @@
///////////////////////////////////////////////////////////////////////
//// plugin library functions
-//#ifdef HAVE_LIRC
PLUGIN_LIBRARY_FUNCTIONS(LircSupport, "tderadio-lirc", i18n("Linux Infrared Control (LIRC) Support"));
-//#endif
/////////////////////////////////////////////////////////////////////////////
@@ -54,7 +50,6 @@ LircSupport::LircSupport(const TQString &name)
m_TakeRawLIRC(false)
{
-#ifdef HAVE_LIRC
logDebug(i18n("initializing tderadio lirc plugin"));
fprintf (stderr, "%s\n", (const char*)i18n("initializing tderadio lirc plugin").utf8());
char *prg = (char*)"tderadio";
@@ -111,7 +106,6 @@ LircSupport::LircSupport(const TQString &name)
logDebug(i18n("Initializing tderadio lirc plugin successful"));
fprintf (stderr, "%s\n", (const char*)i18n("Initializing tderadio lirc plugin successful").utf8());
}
-#endif
m_kbdTimer = new TQTimer (this);
TQObject::connect (m_kbdTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotKbdTimedOut()));
@@ -122,20 +116,17 @@ LircSupport::LircSupport(const TQString &name)
LircSupport::~LircSupport()
{
-#ifdef HAVE_LIRC
if (m_fd_lirc != -1)
lirc_deinit();
if (m_lircConfig)
lirc_freeconfig(m_lircConfig);
m_fd_lirc = -1;
m_lircConfig = 0;
-#endif
}
void LircSupport::slotLIRC(int /*socket*/ )
{
-#ifdef HAVE_LIRC
if (!m_lircConfig || !m_lirc_notify || m_fd_lirc == -1)
return;
@@ -173,7 +164,6 @@ void LircSupport::slotLIRC(int /*socket*/ )
if (code)
free (code);
-#endif
}