From 107d87dc983f34e4ff23a4db188baa650ac51f98 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 22 Jan 2013 00:32:13 -0800 Subject: Cleaning up some cruft. --- src/Async.cc | 2 +- src/BRegex.cc | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Async.cc b/src/Async.cc index afc1879..09465d3 100644 --- a/src/Async.cc +++ b/src/Async.cc @@ -67,7 +67,7 @@ void Balau::AsyncManager::startOneFinisher() { void Balau::AsyncManager::joinStoppedFinishers() { for (auto i = m_workers.begin(); i != m_workers.end(); i++) { AsyncFinishWorker * worker = *i; - if (!worker->m_stopped) + if (!worker->stopped()) continue; Printer::elog(E_ASYNC, "Joining stopped worker at %p", worker); m_numFinishers--; diff --git a/src/BRegex.cc b/src/BRegex.cc index c235de6..1ada2f1 100644 --- a/src/BRegex.cc +++ b/src/BRegex.cc @@ -1,6 +1,6 @@ #include "BRegex.h" -Balau::Regex::Regex(const char * regex, bool icase) throw (GeneralException) { +Balau::Regex::Regex(const char * regex, bool icase) throw (GeneralException) : m_regexStr(regex), m_icase(icase) { int r = regcomp(&m_regex, regex, REG_EXTENDED | (icase ? REG_ICASE : 0)); if (r) throw GeneralException(getError(r)); @@ -30,10 +30,6 @@ Balau::Regex::Captures Balau::Regex::match(const char * str) const throw (Genera return ret; } -Balau::Regex::~Regex() { - regfree(&m_regex); -} - Balau::String Balau::Regex::getError(int err) const { size_t s; char * t; -- cgit v1.2.3