Commit e28289ad authored by Duggan, John's avatar Duggan, John
Browse files

Remove unused method

parent 8363cdb2
Loading
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
"""View Implementation for DataSelector."""

from typing import Any, Dict, List, Tuple, Union
from typing import Any, List, Tuple, Union
from warnings import warn

from trame.app import get_server
@@ -157,14 +157,6 @@ class NeutronDataSelector(DataSelector):

        self._vm.update_view()

    def on_update(self, results: Dict[str, Any]) -> None:
        self._vm.set_binding_parameters(
            facility=get_state_param(self.state, self._selected_facility_name),
            instrument=get_state_param(self.state, self._selected_instrument_name),
            experiment=get_state_param(self.state, self._selected_experiment_name),
            allow_custom_directories=get_state_param(self.state, self._allow_custom_directories),
        )

    # This method sets up Trame state change listeners for each binding parameter that can be changed directly by this
    # component. This allows us to communicate the changes to the developer's bindings without requiring our own. We
    # don't want bindings in the internal implementation as our callbacks could compete with the developer's.