Genesis::getHashByPath is no longer used

This commit is contained in:
Victor Dubiniuk 2015-09-08 00:20:10 +03:00
parent 5152a024e3
commit e656e78958

View File

@ -76,10 +76,6 @@ class Genesis {
return $this->hash; return $this->hash;
} }
public static function getHashByPath($path){
return preg_replace('|([a-zA-Z0-9])*\..*$|', '\1', $path);
}
protected function getDocumentHash($view, $path){ protected function getDocumentHash($view, $path){
$this->validate($view, $path); $this->validate($view, $path);
$hash = sha1($view->file_get_contents($path)); $hash = sha1($view->file_get_contents($path));