Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/classes/Pdf.php')
-rw-r--r--libraries/classes/Pdf.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/libraries/classes/Pdf.php b/libraries/classes/Pdf.php
index 7b93ebf83f..7ad6626320 100644
--- a/libraries/classes/Pdf.php
+++ b/libraries/classes/Pdf.php
@@ -13,7 +13,6 @@ use TCPDF_FONTS;
use function __;
use function count;
-use function strlen;
use function strtr;
/**
@@ -137,21 +136,4 @@ class Pdf extends TCPDF
)->getDisplay();
exit;
}
-
- /**
- * Sends file as a download to user.
- *
- * @param string $filename file name
- */
- public function download($filename): void
- {
- $pdfData = $this->getPDFData();
- ResponseRenderer::getInstance()->disable();
- Core::downloadHeader(
- $filename,
- 'application/pdf',
- strlen($pdfData)
- );
- echo $pdfData;
- }
}