diff --git a/src/apps/cortex/MediaRoutingView/MediaRoutingView.cpp b/src/apps/cortex/MediaRoutingView/MediaRoutingView.cpp index bd2f7f367c..5a52adad28 100644 --- a/src/apps/cortex/MediaRoutingView/MediaRoutingView.cpp +++ b/src/apps/cortex/MediaRoutingView/MediaRoutingView.cpp @@ -298,9 +298,8 @@ void MediaRoutingView::AttachedToWindow() // attach to manager ASSERT(manager); - status_t err = add_observer(this, manager); - ASSERT(err == B_OK); - + add_observer(this, manager); + // add the context-menu shortcuts to the window _addShortcuts(); diff --git a/src/apps/cortex/NodeManager/NodeManager.cpp b/src/apps/cortex/NodeManager/NodeManager.cpp index 30e5cde391..4a4aaaf34d 100644 --- a/src/apps/cortex/NodeManager/NodeManager.cpp +++ b/src/apps/cortex/NodeManager/NodeManager.cpp @@ -408,11 +408,8 @@ NodeManager::NodeManager( Run(); // initialize connection to the media roster - D_ROSTER(( - "# roster->StartWatching(%p)\n", this)); - status_t err = roster->StartWatching( - BMessenger(this)); - ASSERT(err == B_OK); + D_ROSTER(("# roster->StartWatching(%p)\n", this)); + roster->StartWatching(BMessenger(this)); } // -------------------------------------------------------- // diff --git a/src/apps/cortex/RouteApp/ConnectionIO.cpp b/src/apps/cortex/RouteApp/ConnectionIO.cpp index 30e34e7f25..02b3cab333 100644 --- a/src/apps/cortex/RouteApp/ConnectionIO.cpp +++ b/src/apps/cortex/RouteApp/ConnectionIO.cpp @@ -51,7 +51,6 @@ ConnectionIO::ConnectionIO( ASSERT(con); ASSERT(manager); ASSERT(context); - status_t err; if(!con->isValid()) { PRINT(( diff --git a/src/apps/cortex/RouteApp/RouteApp.cpp b/src/apps/cortex/RouteApp/RouteApp.cpp index d4f92e3565..279246ea5f 100644 --- a/src/apps/cortex/RouteApp/RouteApp.cpp +++ b/src/apps/cortex/RouteApp/RouteApp.cpp @@ -105,17 +105,13 @@ RouteApp::RouteApp() : routeWindow->Show(); } -bool RouteApp::QuitRequested() { +bool +RouteApp::QuitRequested() +{ // [e.moon 20oct99] make sure the main window is dead before quitting - + // store window positions & other settings - app_info ai; - status_t err = GetAppInfo(&ai); - ASSERT(err == B_OK); - - BFile appFile(&ai.ref, B_READ_WRITE); - // write settings file _writeSettings();