Remove the compatibility wrappers create_tempfile_mode() and
create_tempfile() that have become unused.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
* file created by its parent.
*/
-#define USE_THE_REPOSITORY_VARIABLE
-
#include "git-compat-util.h"
#include "abspath.h"
#include "path.h"
}
/* Make sure errno contains a meaningful value on error */
-struct tempfile *create_tempfile_mode(const char *path, int mode)
-{
- return repo_create_tempfile_mode(the_repository, path, mode);
-}
-
struct tempfile *repo_create_tempfile_mode(struct repository *r,
const char *path, int mode)
{
* `core.sharedRepository`, so it is not guaranteed to have the given
* mode.
*/
-struct tempfile *create_tempfile_mode(const char *path, int mode);
-
struct tempfile *repo_create_tempfile_mode(struct repository *r,
const char *path, int mode);
-static inline struct tempfile *create_tempfile(const char *path)
-{
- return create_tempfile_mode(path, 0666);
-}
-
static inline struct tempfile *repo_create_tempfile(struct repository *r,
const char *path)
{