Skip to content

Commit

Permalink
Remove unsued files
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Sep 23, 2024
1 parent b50b285 commit 8a9f89d
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 170 deletions.
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/optimization-issue-template.md

This file was deleted.

6 changes: 3 additions & 3 deletions AmApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "analyze/algorithm/ImagePair.h"
#include <sstream>

#if defined __unix__ || defined __APPLE__
#ifndef WIN32
#include <jpeglib.h>
#endif
namespace am
Expand Down Expand Up @@ -37,7 +37,7 @@ namespace am
obj.getMaxHeight());
}

#if defined __unix__ || defined __APPLE__
#ifndef WIN32
if (dbcPtr)
{
std::stringstream ss;
Expand All @@ -51,7 +51,7 @@ namespace am

void AmApi::enable_database_reports(const char *db_name)
{
#if defined __unix__ || defined __APPLE__
#ifndef WIN32
dbcPtr.reset(new database::DataBaseCommunicator(db_name));
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions AmApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "configuration/ConfigurationReader.hpp"
#include "common/Logger.hpp"
#include "extraction/MultipleExtractor.h"
#if defined __unix__ || defined __APPLE__
#ifndef WIN32
#include "database/DataBaseCommunicator.h"
#endif

Expand All @@ -29,7 +29,7 @@ namespace am

std::string base_img_path;
std::string cmp_img_path;
#if defined __unix__ || defined __APPLE__
#ifndef WIN32
std::unique_ptr<database::DataBaseCommunicator> dbcPtr;
#endif
Configuration configuration;
Expand Down
76 changes: 0 additions & 76 deletions CODE_OF_CONDUCT.md

This file was deleted.

8 changes: 0 additions & 8 deletions CONTRIBUTING.md

This file was deleted.

1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

4 changes: 2 additions & 2 deletions extraction/MultipleExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <algorithm>

#include "BmpExtractor.h"
#if defined __unix__ || defined __APPLE__
#ifndef WIN32
#include "JpgExtractor.h"
#endif
#include "common/types/Color24b.hpp"
Expand Down Expand Up @@ -38,7 +38,7 @@ namespace am
{
futures.emplace_back(std::async(std::launch::deferred, BmpExtractor::readFile, fileNames[i]));
}
#if defined __unix__ || defined __APPLE__ // note: currently jpeg supported with Unix OS (with libjpeg)
#ifndef WIN32 // note: currently jpeg supported with Unix OS (with libjpeg)
else if (file_ext == "jpg" || file_ext == "jpeg" || file_ext == "jpe")
{
futures.emplace_back(std::async(std::launch::async, JpgExtractor::readFile, fileNames[i]));
Expand Down
8 changes: 4 additions & 4 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ void handleSignal(int signal)
server->stop();
server.reset();
}
exit(0); // Exit the program with status code 0
exit(0);
}

int main(int argc, char *argv[])
{
#ifndef _WIN32
struct sigaction sa;
sa.sa_handler = handleSignal; // Set the handler function
sa.sa_flags = 0; // No special flags
sigemptyset(&sa.sa_mask); // No additional signals blocked during handler execution
sa.sa_handler = handleSignal;
sa.sa_flags = 0;
sigemptyset(&sa.sa_mask);

// Set up handlers for SIGTERM and SIGINT
if (sigaction(SIGTERM, &sa, nullptr) == -1)
Expand Down
4 changes: 2 additions & 2 deletions service/SilberService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace am::service
while (m_isRunning)
{
Message *message = m_server->receive();
printf("received %d message\n", message->type);
printf("received %zu message\n", message->type);
if (!m_connections.isRequestValid(message))
{
std::cout << "received UNEXPECTED_REQUEST req\n"
Expand Down Expand Up @@ -58,7 +58,7 @@ namespace am::service
printf("compare_ %s %s _\n", messageCompare->base, messageCompare->to_compare);
auto iter = m_connections.processActionUpdate(message);
m_amApi->setConfiguration(iter->configuration); // set configuration for this client
printf("conf pixs %d\n", iter->configuration.MinPixelsForObject);
printf("conf pixs %zu\n", iter->configuration.MinPixelsForObject);
am::analyze::algorithm::DescObjects result;
try
{
Expand Down

0 comments on commit 8a9f89d

Please sign in to comment.