PluginBase: remove useless function

it's possible to check the loader instance instead of doing this, and we're gunning to get rid of the path from the plugin base.
This commit is contained in:
Dylan K. Taylor 2019-06-06 18:22:20 +01:00
parent 44c791f03e
commit f8a7766880

View File

@ -254,13 +254,6 @@ abstract class PluginBase implements Plugin, CommandExecutor{
return false;
}
/**
* @return bool
*/
protected function isPhar() : bool{
return strpos($this->file, "phar://") === 0;
}
/**
* Gets an embedded resource on the plugin file.
* WARNING: You must close the resource given using fclose()