removed gitcommit.h

This commit is contained in:
Levi Neely 2024-06-27 21:54:20 +02:00
parent 8c3a0f1c9a
commit 3abd51ef7f
4 changed files with 1 additions and 50 deletions

View File

@ -1,36 +0,0 @@
/*
Copyright (c) 2013-2015 pCloud Ltd. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met: Redistributions of source code must retain the above
copyright notice, this list of conditions and the following
disclaimer. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided with
the distribution. Neither the name of pCloud Ltd nor the names of
its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL pCloud
Ltd BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
*/
#ifndef _GITCOMMIT_H
#define _GITCOMMIT_H
#define GIT_PREV_COMMIT_ID "94bcb6bc2320e3a73c2e3fccbda649bd79421db7"
#define GIT_PREV_COMMIT_DATE "2016-12-21 18:57:17 +0200"
#define GIT_COMMIT_DATE "2016-12-22 01:29:14 +0200"
#endif

View File

@ -1,8 +0,0 @@
#ifndef _GITCOMMIT_H
#define _GITCOMMIT_H
#define GIT_PREV_COMMIT_ID "a449ee9ac09ecbd9411d5a911aac26a0deacb4d9"
#define GIT_PREV_COMMIT_DATE "2021-03-11 13:21:49 +0200"
#define GIT_COMMIT_DATE "2021-03-11 13:23:14 +0200"
#endif

View File

@ -43,7 +43,6 @@
#include "papi.h"
#include "pcache.h"
#include "ptree.h"
#include "gitcommit.h"
struct time_bytes {
time_t tm;
@ -2446,7 +2445,7 @@ int psync_send_debug(int thread, const char *file, const char *function, int uns
file=lsl+1;
#endif
ret=psync_deviceid();
snprintf(format, sizeof(format), "%s %s %s: %s:%u (function %s): %s\n", ret, GIT_COMMIT_DATE, psync_thread_name, file, line, function, fmt);
snprintf(format, sizeof(format), "%s %s: %s:%u (function %s): %s\n", ret, psync_thread_name, file, line, function, fmt);
psync_free(ret);
format[sizeof(format)-1]=0;
ret=NULL;

View File

@ -29,7 +29,6 @@
DAMAGE.
*/
#include "gitcommit.h"
#include "plibs.h"
#include "pcompat.h"
#include "psynclib.h"
@ -222,9 +221,6 @@ void psync_apiserver_init(){
int psync_init(){
psync_thread_name="main app thread";
debug(D_NOTICE, "initializing library version "PSYNC_LIB_VERSION);
debug(D_NOTICE, "last commit time "GIT_COMMIT_DATE);
debug(D_NOTICE, "previous commit time "GIT_PREV_COMMIT_DATE);
debug(D_NOTICE, "previous commit id "GIT_PREV_COMMIT_ID);
if (IS_DEBUG){
pthread_mutex_lock(&psync_libstate_mutex);
if (psync_libstate!=0){