From 7b362730d72687f1300490b2d392a1b48c9677c8 Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Wed, 23 Oct 2002 15:21:33 +0000 Subject: [PATCH] Removed unnecessary code. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1618 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/print/PrintServerApp.cpp | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/servers/print/PrintServerApp.cpp b/src/servers/print/PrintServerApp.cpp index 71756b8e77..1af749948c 100644 --- a/src/servers/print/PrintServerApp.cpp +++ b/src/servers/print/PrintServerApp.cpp @@ -84,23 +84,14 @@ int main() { status_t rc = B_OK; - - if (!be_roster->IsRunning(PSRV_SIGNATURE_TYPE)) { - gLock = new BLocker(); - // Create our application object - PrintServerApp print_server(&rc); - - // If all went fine, let's start it - if (rc == B_OK) { - print_server.Run(); - } - - delete gLock; - } else { - // restart print server - // As we load the printer addon everytime we need it - // and unload it afterwards, we have nothing to do here! + gLock = new BLocker(); + // Create our application object + PrintServerApp print_server(&rc); + // If all went fine, let's start it + if (rc == B_OK) { + print_server.Run(); } + delete gLock; return rc; }