Skip to content

Commit

Permalink
Remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Dec 30, 2016
1 parent 607d010 commit c5bcaf4
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 214 deletions.
15 changes: 0 additions & 15 deletions chatterbot/conversation/comparisons.py

This file was deleted.

14 changes: 0 additions & 14 deletions chatterbot/conversation/response_selection.py

This file was deleted.

8 changes: 0 additions & 8 deletions chatterbot/conversation/session.py
Expand Up @@ -47,11 +47,3 @@ def update(self, session_id, conversance):
session_id = str(session_id)
if session_id in self.sessions:
self.sessions[session_id].conversation.append(conversance)

def get_default(self):
import warnings
warnings.warn("get_default is deprecated. Use 'get' instead.", DeprecationWarning)

def update_default(self, conversance):
import warnings
warnings.warn("update_default is deprecated. Use 'update' instead.", DeprecationWarning)
4 changes: 0 additions & 4 deletions chatterbot/logic/__init__.py
@@ -1,12 +1,8 @@
from .logic_adapter import LogicAdapter
from .best_match import BestMatch
from .closest_match import ClosestMatchAdapter
from .closest_meaning import ClosestMeaningAdapter
from .low_confidence import LowConfidenceAdapter
from .mathematical_evaluation import MathematicalEvaluation
from .multi_adapter import MultiLogicAdapter
from .no_knowledge_adapter import NoKnowledgeAdapter
from .specific_response import SpecificResponseAdapter
from .time_adapter import TimeLogicAdapter

BaseMatchAdapter = BestMatch
26 changes: 0 additions & 26 deletions chatterbot/logic/closest_match.py

This file was deleted.

28 changes: 0 additions & 28 deletions chatterbot/logic/closest_meaning.py

This file was deleted.

8 changes: 0 additions & 8 deletions chatterbot/logic/logic_adapter.py
Expand Up @@ -14,14 +14,6 @@ def __init__(self, **kwargs):
from chatterbot.comparisons import levenshtein_distance
from chatterbot.response_selection import get_first_response

if 'tie_breaking_method' in kwargs:
raise DeprecationWarning(
'The parameter "tie_breaking_method" has been removed. ' +
'Instead, pass a callable to "response_selection_method". ' +
'See documentation for details: ' +
'http://chatterbot.readthedocs.io/en/latest/logic/response_selection.html#setting-the-response-selection-method'
)

# Import string module parameters
if 'statement_comparison_function' in kwargs:
import_path = kwargs.get('statement_comparison_function')
Expand Down
1 change: 0 additions & 1 deletion chatterbot/output/__init__.py
@@ -1,7 +1,6 @@
from .output_adapter import OutputAdapter
from .microsoft import Microsoft
from .terminal import TerminalAdapter
from .output_format_adapter import OutputFormatAdapter
from .mailgun import Mailgun
from .gitter import Gitter
from .hipchat import HipChat
65 changes: 0 additions & 65 deletions chatterbot/output/output_format_adapter.py

This file was deleted.

44 changes: 0 additions & 44 deletions tests/output_adapter_tests/test_output_format_adapter.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_response_selection.py
@@ -1,5 +1,5 @@
from unittest import TestCase
from chatterbot.conversation import response_selection
from chatterbot import response_selection
from chatterbot.conversation import Statement, Response


Expand Down

0 comments on commit c5bcaf4

Please sign in to comment.