Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Jun 13, 2023
1 parent b21eaf2 commit c162173
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 225 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
brew install autoconf-archive
brew install pkg-config
- name: Build
- name: Test on macOS
run: |
autoreconf -v --install --force
./configure --prefix=/usr
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ examples/choice
examples/.deps/
examples/dialog
examples/event-log
examples/eventloop
examples/fullwidth-character
examples/hello
examples/highlight-text
Expand Down
210 changes: 0 additions & 210 deletions examples/eventloop

This file was deleted.

10 changes: 0 additions & 10 deletions final/eventloop/signal_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ inline auto SigactionImpl::getSigaction() const -> const struct sigaction*
inline auto SigactionImpl::getSigaction() -> struct sigaction*
{ return &old_sig_action; }


// SignalMonitor constructors and destructor
//----------------------------------------------------------------------
SignalMonitor::SignalMonitor (EventLoop* eloop)
Expand All @@ -81,15 +80,6 @@ SignalMonitor::~SignalMonitor() noexcept // destructor
signal_monitors.erase(signal_number);
}

// SignalMonitor operator
//----------------------------------------------------------------------
SignalMonitor& SignalMonitor::operator = (const SignalMonitor& sm)
{
if ( this != &sm )
impl.reset(new SigactionImpl(*sm.impl));

return *this;
}

// public methods of SignalMonitor
//----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions final/eventloop/signal_monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,12 @@ class SignalMonitor final : public Monitor
// Destructor
~SignalMonitor() noexcept override;

// Copy assignment operator (=)
SignalMonitor& operator = (const SignalMonitor&);

// Methods
void init (int, handler_t, void*);
void trigger (short) override;

private:
// Disable copy constructor
// Disable copy assignment operator (=)
auto operator = (const SignalMonitor&) -> SignalMonitor& = delete;

// Disable move assignment operator (=)
Expand Down

0 comments on commit c162173

Please sign in to comment.