diff --git a/src/hydra-queue-runner/Makefile.am b/src/hydra-queue-runner/Makefile.am index 38b7d342..6356a927 100644 --- a/src/hydra-queue-runner/Makefile.am +++ b/src/hydra-queue-runner/Makefile.am @@ -2,8 +2,7 @@ bin_PROGRAMS = hydra-queue-runner hydra_queue_runner_SOURCES = hydra-queue-runner.cc queue-monitor.cc dispatcher.cc \ builder.cc build-result.cc build-remote.cc \ - build-result.hh counter.hh token-server.hh state.hh db.hh \ - finally.hh + build-result.hh counter.hh token-server.hh state.hh db.hh hydra_queue_runner_LDADD = $(NIX_LIBS) -lpqxx AM_CXXFLAGS = $(NIX_CFLAGS) -Wall -laws-cpp-sdk-s3 diff --git a/src/hydra-queue-runner/finally.hh b/src/hydra-queue-runner/finally.hh deleted file mode 100644 index 47c64dea..00000000 --- a/src/hydra-queue-runner/finally.hh +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -/* A trivial class to run a function at the end of a scope. */ -class Finally -{ -private: - std::function fun; - -public: - Finally(std::function fun) : fun(fun) { } - ~Finally() { fun(); } -};