From 1453078d1b13013c4657a9f8487441587e06f1ff Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 4 Jul 2020 22:55:57 -0400 Subject: [PATCH] unused functions --- CRM/Core/CodeGen/Util/File.php | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/CRM/Core/CodeGen/Util/File.php b/CRM/Core/CodeGen/Util/File.php index debba44c9f..3fa8b97b56 100644 --- a/CRM/Core/CodeGen/Util/File.php +++ b/CRM/Core/CodeGen/Util/File.php @@ -45,36 +45,4 @@ class CRM_Core_CodeGen_Util_File { return $newTempDir; } - /** - * Calculate a cumulative digest based on a collection of files. - * - * @param array $files - * List of file names (strings). - * @param callable|string $digest a one-way hash function (string => string) - * - * @return string - */ - public static function digestAll($files, $digest = 'md5') { - $buffer = ''; - foreach ($files as $file) { - $buffer .= $digest(file_get_contents($file)); - } - return $digest($buffer); - } - - /** - * Find the path to the main Civi source tree. - * - * @return string - * @throws RuntimeException - */ - public static function findCoreSourceDir() { - $path = str_replace(DIRECTORY_SEPARATOR, '/', __DIR__); - if (!preg_match(':(.*)/CRM/Core/CodeGen/Util:', $path, $matches)) { - throw new RuntimeException("Failed to determine path of code-gen"); - } - - return $matches[1]; - } - } -- 2.25.1