Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 918e645

Browse files
committed
Remove auth_signal() function...
and associated dead code Following a suggestion from @mliszcz
1 parent 32f1955 commit 918e645

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

cppapi/server/dserversignal.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,6 @@ void DServerSignal::register_class_signal(long signo,bool handler,DeviceClass *c
269269
(const char *)"DServerSignal::register_class_signal");
270270
}
271271

272-
if (auth_signal(signo) == false)
273-
{
274-
TangoSys_OMemStream o;
275-
o << "Signal " << sig_name[signo] << "is not authorized with your OS" << std::ends;
276-
Except::throw_exception((const char *)API_SignalOutOfRange,
277-
o.str(),
278-
(const char *)"DServerSignal::register_class_signal");
279-
}
280-
281272
#ifndef _TG_WINDOWS_
282273
if ((auto_signal(signo) == true) && (handler == true))
283274
{
@@ -385,15 +376,6 @@ void DServerSignal::register_dev_signal(long signo,bool handler,DeviceImpl *dev_
385376
(const char *)"DServerSignal::register_dev_signal");
386377
}
387378

388-
if (auth_signal(signo) == false)
389-
{
390-
TangoSys_OMemStream o;
391-
o << "Signal " << sig_name[signo] << "is not authorized with your OS" << std::ends;
392-
Except::throw_exception((const char *)API_SignalOutOfRange,
393-
o.str(),
394-
(const char *)"DServerSignal::register_dev_signal");
395-
}
396-
397379
#ifndef _TG_WINDOWS_
398380
if ((auto_signal(signo) == true) && (handler == true))
399381
{

cppapi/server/dserversignal.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,6 @@ protected :
150150
}
151151
#endif
152152

153-
#if (defined __GLIBC__ || defined __darwin__ || defined __FreeBSD__ || defined __OpenBSD__)
154-
static inline bool auth_signal(TANGO_UNUSED(long s)) {return true;}
155-
#endif
156-
157-
#ifdef _TG_WINDOWS_
158-
static inline bool auth_signal(long s) {return true;}
159-
#endif
160-
161153
static std::string sig_name[_NSIG];
162154

163155
};

0 commit comments

Comments
 (0)