From 8cb2affc5041763d1a255bed238c392a9af84c30 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 31 Jan 2022 20:26:44 +0100 Subject: [PATCH] Manager: Clean up main.cpp --- src/main.cpp | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fa6ecf7..4949103 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,32 +4,16 @@ * SPDX-License-Identifier: MIT */ -#include // fprintf, perror, stderr -#include +#include // fprintf, stderr #include -#include // gethostname #include #include "config.h" #include "dotfile.h" #include "package.h" #include "util/argparser.h" -#include "util/file.h" -#include "util/system.h" #include "util/timer.h" -// void* operator new(size_t size) -// { -// std::cout << "@Allocating '" << size << "' bytes" << std::endl; -// return std::malloc(size); -// } - -// void operator delete(void* pointer, size_t size) -// { -// std::cout << "@Freeing '" << size << "' bytes" << std::endl; -// free(pointer); -// } - int main(int argc, const char* argv[]) { bool fileOperation = false; @@ -123,14 +107,3 @@ int main(int argc, const char* argv[]) return 0; } - -// cp -a <> <> -// -a = -dR --preserve=all -// -d = --no-dereference --preserve=links -// -P, --no-dereference = never follow symbolic links in SOURCE -// -R = recursive -// --preserve = preserve attributes (default: mode,ownership,timestamps), additional: context,links,xattr,all - -// # Files that are stored in the repository but shouldn't get copied (regex) -// excludeFiles="${0#??}|$packageFile|.*.md$|.*README.org$|.git|screenshot.png" -// exclude: files, folders, ends-with