diff --git a/src/Controller/HandlePdfController.php b/src/Controller/HandlePdfController.php
index 2b43a5ee1c8670ec6cf8b55d4aa958ec21c75f62..15d253ed6a8102fe00aeb0e02dcc3b2189ce1dab 100644
--- a/src/Controller/HandlePdfController.php
+++ b/src/Controller/HandlePdfController.php
@@ -262,10 +262,6 @@ class HandlePdfController extends ControllerBase {
       $action_plugin_id = $redirect ? 'redirect' : 'save';
     }
 
-    // @todo Remove in FillPDF 5.x. The filename is not part of the context and
-    // is separately available anyway.
-    $context['filename'] = $filename;
-
     $action_configuration = [
       'form' => $fillpdf_form,
       'context' => $context,