From cd13f3ef39a3608eb18689756bdc1b85baed487b Mon Sep 17 00:00:00 2001
From: kienle <kienle@passcal.nmt.edu>
Date: Thu, 24 Aug 2023 13:37:37 -0600
Subject: [PATCH] Remove commented-out code

---
 .../model/reftek/reftek_data/core.py          | 23 -------------------
 1 file changed, 23 deletions(-)

diff --git a/sohstationviewer/model/reftek/reftek_data/core.py b/sohstationviewer/model/reftek/reftek_data/core.py
index 548f4e0f4..a5c75e9a6 100644
--- a/sohstationviewer/model/reftek/reftek_data/core.py
+++ b/sohstationviewer/model/reftek/reftek_data/core.py
@@ -216,29 +216,6 @@ class Reftek130(obspy_rt130_core.Reftek130):
                     # payload, so add it to stats as well..
                     tr.stats.reftek130['channel_number'] = channel_number
                     tr.stats.starttime = UTCDateTime(ns=starttime)
-                    """
-                    if component codes were explicitly provided, use them
-                    together with the stream label
-                    if component_codes is not None:
-                        tr.stats.channel = (eh.stream_name.strip() +
-                                            component_codes[channel_number])
-                    # otherwise check if channel code is set for the given
-                    # channel (seems to be not the case usually)
-                    elif eh.channel_code[channel_number] is not None:
-                        tr.stats.channel = eh.channel_code[channel_number]
-                    # otherwise fall back to using the stream label together
-                    # with the number of the channel in the file (starting with
-                    # 0, as Z-1-2 is common use for data streams not oriented
-                    # against North)
-                    else:
-                        msg = ("No channel code specified in the data file "
-                               "and no component codes specified. Using "
-                               "stream label and number of channel in file as "
-                               "channel codes.")
-                        warnings.warn(msg)
-                        tr.stats.channel = (
-                            eh.stream_name.strip() + str(channel_number))
-                    """
                     DS = self._data['data_stream_number'][0] + 1
                     if DS != 9:
                         tr.stats.channel = "DS%s-%s" % (DS, channel_number + 1)
-- 
GitLab