Merge pull request #18397 from swastikpareek/issue-1987-fix-isFrontPage-function
[civicrm-core.git] / CRM / Core / CodeGen / Main.php
index 88a31222d60ae531b8b2a853d4f3178ebfdd9ace..1b754b959fb4274020eb631489e845d4b0ee9fcc 100644 (file)
@@ -132,25 +132,6 @@ Alternatively you can get a version of CiviCRM that matches your PHP version
     return $tasks;
   }
 
-  /**
-   * Compute a digest based on the GenCode logic (PHP/tpl).
-   *
-   * @return string
-   */
-  public function getSourceDigest() {
-    if ($this->sourceDigest === NULL) {
-      $srcDir = CRM_Core_CodeGen_Util_File::findCoreSourceDir();
-      $files = CRM_Core_CodeGen_Util_File::findManyFiles([
-        ["$srcDir/CRM/Core/CodeGen", '*.php'],
-        ["$srcDir/xml", "*.php"],
-        ["$srcDir/xml", "*.tpl"],
-      ]);
-
-      $this->sourceDigest = CRM_Core_CodeGen_Util_File::digestAll($files);
-    }
-    return $this->sourceDigest;
-  }
-
   /**
    * @return static
    */