Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix: follow rm evil cache functions by CorniI

Exactly, following 8143638

They are not used anymore.
  • Loading branch information...
commit c5bbe46edb29eb6142942ba971a51dc9d5becbc0 1 parent 2fdfa62
@marvil07 authored
Showing with 0 additions and 37 deletions.
  1. +0 −6 versioncontrol_git.install
  2. +0 −31 versioncontrol_git.module
View
6 versioncontrol_git.install
@@ -44,12 +44,6 @@ function versioncontrol_git_schema() {
'not null' => FALSE,
'default' => 0,
),
- 'cache_path' => array(
- 'description' => t('Path of the cache file.'),
- 'type' => 'blob',
- 'not null' => FALSE,
- 'default' => '',
- ),
),
'primary key' => array('repo_id'),
);
View
31 versioncontrol_git.module
@@ -268,34 +268,3 @@ function versioncontrol_git_format_revision_identifier($repository, $revision, $
return $revision;
}
}
-
-/**
- * Delete the cache file for a given repository.
- * @param $repository
- * The repository to delete the cache for
- */
-function _versioncontrol_git_delete_repository_cache($repository) {
- $cache = $repository['git_specific']['cache_path'];
- if (file_exists($cache)) {
- @unlink($cache);
- }
-}
-
-/**
- * Implementation of hook_repository().
- */
-function versioncontrol_git_repository($op, $repository) {
- if ($op == 'delete') {
- _versioncontrol_git_delete_repository_cache($repository);
- }
-}
-
-function versioncontrol_git_disable() {
- $constraints = array(
- 'vcs' => array('git')
- );
- $repos = versioncontrol_get_repositories($constraints);
- foreach ($repos as $repository) {
- _versioncontrol_git_delete_repository_cache($repository);
- }
-}
Please sign in to comment.
Something went wrong with that request. Please try again.