From dd5af7637d2bb045303cf258d547fc0c8b7d6a6d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 10 Oct 2016 16:01:48 +0200 Subject: [PATCH] Remove finally.hh --- src/hydra-queue-runner/Makefile.am | 3 +-- src/hydra-queue-runner/finally.hh | 12 ------------ 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 src/hydra-queue-runner/finally.hh 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(); } -};