diff --git a/headers/os/media/ParameterWeb.h b/headers/os/media/ParameterWeb.h index c6a890eb12..b64240fb04 100644 --- a/headers/os/media/ParameterWeb.h +++ b/headers/os/media/ParameterWeb.h @@ -91,11 +91,6 @@ public: int32 CountParameters(); BParameter* ParameterAt(int32 index); - status_t StartWatching(const BMessenger& target, - int32 notificationType); - status_t StopWatching(const BMessenger& target, - int32 notificationType); - // BFlattenable implementation virtual bool IsFixedSize() const; virtual type_code TypeCode() const; diff --git a/src/kits/media/ParameterWeb.cpp b/src/kits/media/ParameterWeb.cpp index e2cc3078bf..69eca9f773 100644 --- a/src/kits/media/ParameterWeb.cpp +++ b/src/kits/media/ParameterWeb.cpp @@ -420,28 +420,6 @@ BParameterWeb::ParameterAt(int32 index) } -status_t -BParameterWeb::StartWatching(const BMessenger& target, int32 notificationType) -{ - if (BMediaRoster::CurrentRoster() == NULL) - return B_ERROR; - - return BMediaRoster::CurrentRoster()->StartWatching(target, fNode, - notificationType); -} - - -status_t -BParameterWeb::StopWatching(const BMessenger& target, int32 notificationType) -{ - if (BMediaRoster::CurrentRoster() == NULL) - return B_ERROR; - - return BMediaRoster::CurrentRoster()->StopWatching(target, fNode, - notificationType); -} - - bool BParameterWeb::IsFixedSize() const { @@ -685,12 +663,12 @@ BParameterGroup::~BParameterGroup() CALLED(); for (int i = fControls->CountItems(); i-- > 0;) { - delete static_cast(fControls->ItemAt(0)); + delete static_cast(fControls->ItemAt(i)); } delete fControls; for (int i = fGroups->CountItems(); i-- > 0;) { - delete static_cast(fGroups->ItemAt(0)); + delete static_cast(fGroups->ItemAt(i)); } delete fGroups;