Removed unnecessary code.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1618 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer 2002-10-23 15:21:33 +00:00
parent d734a8ce5a
commit 7b362730d7

View File

@ -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;
}