[Chore] remove the code that is no longer in use. and fixed some comments.

This commit is contained in:
Sakamoto Shiina
2023-09-15 10:58:33 +09:00
parent 94433fe3e2
commit 4c0f356ee1
3 changed files with 9 additions and 37 deletions

13
view.py
View File

@@ -350,6 +350,7 @@ class View():
self.view_variable.CALLBACK_SET_OSC_IP_ADDRESS = config_window_registers.get("callback_set_osc_ip_address", None)
self.view_variable.CALLBACK_SET_OSC_PORT = config_window_registers.get("callback_set_osc_port", None)
# Insert sample conversation for testing.
# self._insertSampleConversationToTextbox()
@@ -446,16 +447,15 @@ class View():
def printToTextbox_SentMessage(self, original_message, translated_message, actual_sent_message=None):
self._printToTextbox_Sent(original_message, translated_message, actual_sent_message)
def printToTextbox_SentMessage(self, original_message, translated_message):
self._printToTextbox_Sent(original_message, translated_message)
@staticmethod
def _printToTextbox_Sent(original_message, translated_message, actual_sent_message=None):
def _printToTextbox_Sent(original_message, translated_message):
vrct_gui.printToTextbox(
target_type="SENT",
original_message=original_message,
translated_message=translated_message,
actual_sent_message=actual_sent_message,
)
@@ -628,7 +628,7 @@ class View():
# These conversation is generated by ChatGPT
# These conversations are generated by ChatGPT
def _insertSampleConversationToTextbox(self):
self.printToTextbox_enableTranscriptionSend()
@@ -738,10 +738,7 @@ class View():
]
for data in conversation_data:
if data.get("me", None) is not None:
# actual_sent_message = config.MESSAGE_FORMAT.replace("[message]", data.get("me", None))
# actual_sent_message = actual_sent_message.replace("[translation]", data.get("me_t", None))
self.printToTextbox_SentMessage(data.get("me", None), data.get("me_t", None))
# self.printToTextbox_SentMessage(data.get("me", None), data.get("me_t", None), actual_sent_message)
if data.get("target", None) is not None:
self.printToTextbox_ReceivedMessage(data.get("target", None), data.get("target_t", None))