[vlc-devel] commit: Remove CACHEDIR.tag ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jan 25 19:09:28 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 25 20:07:18 2010 +0200| [ec77bc81de6d1d79a5a2c219b6acb1b3b703e397] | committer: Rémi Denis-Courmont 

Remove CACHEDIR.tag

As we now store the cache in ~/.cache, this has become quite useless.
In any case, practically no software implements this spec, adn the
author seems to have lost interest over  years ago.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec77bc81de6d1d79a5a2c219b6acb1b3b703e397
---

 src/modules/cache.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/src/modules/cache.c b/src/modules/cache.c
index 46389f6..1c22d2f 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -464,12 +464,6 @@ static int CacheSaveSubmodule( FILE *file, module_t *p_module );
  *****************************************************************************/
 void CacheSave( vlc_object_t *p_this, module_bank_t *p_bank )
 {
-    static char const psz_tag[] =
-        "Signature: 8a477f597d28d172789f06886806bc55\r\n"
-        "# This file is a cache directory tag created by VLC.\r\n"
-        "# For information about cache directory tags, see:\r\n"
-        "#   http://www.brynosaurus.com/cachedir/\r\n";
-
     char *psz_cachedir = config_GetUserDir(VLC_CACHE_DIR);
     FILE *file;
     int i, j, i_cache;
@@ -486,16 +480,6 @@ void CacheSave( vlc_object_t *p_this, module_bank_t *p_bank )
     config_CreateDir( p_this, psz_cachedir );
 
     snprintf( psz_filename, sizeof( psz_filename ),
-              "%s"DIR_SEP"CACHEDIR.TAG", psz_cachedir );
-    file = utf8_fopen( psz_filename, "wb" );
-    if (file != NULL)
-    {
-        if (fwrite (psz_tag, 1, sizeof (psz_tag) - 1, file) != 1)
-            clearerr (file); /* what else can we do? */
-        fclose( file );
-    }
-
-    snprintf( psz_filename, sizeof( psz_filename ),
               "%s"DIR_SEP CACHENAME_FORMAT, psz_cachedir,
               CACHENAME_VALUES );
     free( psz_cachedir );




More information about the vlc-devel mailing list