From 8ef1a2d974b3a4d322999083854dd28f408d6001 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 3 Mar 2006 12:25:55 +0000 Subject: [PATCH] Remove unused files --- src/Session/Makefile.in | 1 - src/Session/SALOME_Session_Server.cxx | 2 -- src/Session/Session_SignalsHandler.cxx | 45 -------------------------- 3 files changed, 48 deletions(-) delete mode 100755 src/Session/Session_SignalsHandler.cxx diff --git a/src/Session/Makefile.in b/src/Session/Makefile.in index 798be825d..89d4fab0e 100755 --- a/src/Session/Makefile.in +++ b/src/Session/Makefile.in @@ -46,7 +46,6 @@ LIB = libSalomeSession.la LIB_SRC=Session_Session_i.cxx \ Session_ServerThread.cxx \ Session_ServerLauncher.cxx \ - Session_SignalsHandler.cxx \ SalomeApp_Engine_i.cxx \ InquireServersQThread.cxx diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index ac7738582..dbc9e1633 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -63,8 +63,6 @@ #include "SUIT_ExceptionHandler.h" -extern "C" int HandleSignals( QApplication *theQApplication ); - /*! - read arguments, define list of server to launch with their arguments. * - wait for naming service * - create and run a thread for launch of all servers diff --git a/src/Session/Session_SignalsHandler.cxx b/src/Session/Session_SignalsHandler.cxx deleted file mode 100755 index 4eeface46..000000000 --- a/src/Session/Session_SignalsHandler.cxx +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library 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 -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org - - -#include -#include - -#include -#include -#include - -extern "C" int HandleSignals(QApplication *theQApplication) -{ - int aRet = -1; - CASCatch_CatchSignals aCatchSignals; - aCatchSignals.Activate(); - - CASCatch_TRY { - aRet = theQApplication->exec(); - } - CASCatch_CATCH(CASCatch_Failure) { - aCatchSignals.Deactivate(); - Handle(CASCatch_Failure) aFail = CASCatch_Failure::Caught(); - throw std::runtime_error( aFail->GetError() ); - } - - aCatchSignals.Deactivate(); - return aRet; -} -- 2.39.2