Removing unused code
This commit is contained in:
parent
34bb0c4943
commit
e9f23d51e0
@ -71,15 +71,5 @@ abstract class AbstractFileDriver extends FileDriver implements Driver
|
||||
protected function findMappingFile($className)
|
||||
{
|
||||
return $this->locator->findMappingFile($className);
|
||||
$fileName = str_replace('\\', '.', $className) . $this->_fileExtension;
|
||||
|
||||
// Check whether file exists
|
||||
foreach ((array) $this->_paths as $path) {
|
||||
if (file_exists($path . DIRECTORY_SEPARATOR . $fileName)) {
|
||||
return $path . DIRECTORY_SEPARATOR . $fileName;
|
||||
}
|
||||
}
|
||||
|
||||
throw MappingException::mappingFileNotFound($className, $fileName);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user