nsresult Unregister(const char *path)
nsresult Unregister(nsIComponentRegistrar *registrar, const char *path)
nsresult Unregister(const char *path) {  nsCOMPtr<nsILocalFile> spec;  nsresult rv = nsComponentManager::CreateInstance(NS_LOCAL_FILE_CONTRACTID,                                                    nsnull,                                                    NS_GET_IID(nsILocalFile),                                                    getter_AddRefs(spec));  if (NS_FAILED(rv) || (!spec))   {      fputs("create nsILocalFile failed\n", stderr);      return NS_ERROR_FAILURE;  }  rv = spec->InitWithPath(path);  if (NS_FAILED(rv)) return rv;  rv = nsComponentManager::AutoUnregisterComponent(nsIComponentManagerObsolete::NS_Startup, spec);  return rv;}