Skip to content

Commit

Permalink
Remove bogus "message" trait from IFuture (#394)
Browse files Browse the repository at this point in the history
The `IFuture` interface declares a `message` trait that was a leftover from refactoring: it's not implemented by any of the concrete implementations, and is not used. This PR removes it.
  • Loading branch information
mdickinson committed Jul 10, 2021
1 parent 13ea0d1 commit 8c2169f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions traits_futures/i_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import abc

from traits.api import Any, Bool, Event, Interface, Property, Str, Tuple
from traits.api import Bool, Interface, Property

from traits_futures.future_states import FutureState

Expand Down Expand Up @@ -42,12 +42,6 @@ class IFuture(Interface):
#: it will be consistent with the ``state``.
done = Property(Bool())

#: Event trait providing custom messages from the background task.
#: Subclasses of ``BaseFuture`` can listen to this trait and interpret
#: the messages in whatever way they like. Each message takes the
#: form ``(message_type, message_args)``.
message = Event(Tuple(Str(), Any()))

@property
@abc.abstractmethod
def result(self):
Expand Down

0 comments on commit 8c2169f

Please sign in to comment.