diff --git a/merge_srt.py b/merge_srt.py
index f0ecc21..90f746a 100644
--- a/merge_srt.py
+++ b/merge_srt.py
@@ -118,7 +118,6 @@ class SRTMerger:
                 count = int(parts[4])
                 if text_start < 1 or time_start < 1 or count < 1:
                     return None
-                text_end = text_start + count - 1
             # Common checks
             if time_start < 1 or count < 1:
                 return None