From 3abd51ef7fd3a6db2c8e84baed703f275d92bc55 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Thu, 27 Jun 2024 21:54:20 +0200 Subject: [PATCH] removed gitcommit.h --- gitcommit.h | 36 -------------------------------- pCloudCC/lib/pclsync/gitcommit.h | 8 ------- pCloudCC/lib/pclsync/pnetlibs.c | 3 +-- pCloudCC/lib/pclsync/psynclib.c | 4 ---- 4 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 gitcommit.h delete mode 100644 pCloudCC/lib/pclsync/gitcommit.h diff --git a/gitcommit.h b/gitcommit.h deleted file mode 100644 index f04ab56..0000000 --- a/gitcommit.h +++ /dev/null @@ -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 diff --git a/pCloudCC/lib/pclsync/gitcommit.h b/pCloudCC/lib/pclsync/gitcommit.h deleted file mode 100644 index 233cfc8..0000000 --- a/pCloudCC/lib/pclsync/gitcommit.h +++ /dev/null @@ -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 diff --git a/pCloudCC/lib/pclsync/pnetlibs.c b/pCloudCC/lib/pclsync/pnetlibs.c index 179d5ba..2d3bf31 100644 --- a/pCloudCC/lib/pclsync/pnetlibs.c +++ b/pCloudCC/lib/pclsync/pnetlibs.c @@ -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; diff --git a/pCloudCC/lib/pclsync/psynclib.c b/pCloudCC/lib/pclsync/psynclib.c index 734061b..3bdb776 100644 --- a/pCloudCC/lib/pclsync/psynclib.c +++ b/pCloudCC/lib/pclsync/psynclib.c @@ -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){