reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 0c04ba4c8bd1cab1a34d49476da06cf3bb4c5e2d
parent 6e18d7a69ce4a2322a50a1ca2a4f1b5a023b275b
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Fri, 15 Sep 2017 04:13:23 -0400

(remove a few unused functions)

Diffstat:
Msrc/menu.cpp | 12------------
Msrc/menu.hpp | 2--
Msrc/path.cpp | 8--------
Msrc/path.hpp | 1-
Msrc/receipt.cpp | 6------
Msrc/receipt.hpp | 1-
Msrc/tabbar.cpp | 9---------
Msrc/tabbar.hpp | 1-
Mtest/path.cpp | 4----
9 files changed, 0 insertions(+), 44 deletions(-)

diff --git a/src/menu.cpp b/src/menu.cpp @@ -119,23 +119,11 @@ int Menu::show(HWND control, HWND parent) const return show(rect.left, rect.bottom - 1, parent); } -void Menu::disableAll() -{ - for(UINT i = 0; i < m_size; i++) - setEnabled(false, i); -} - void Menu::disable(const UINT index) { setEnabled(false, index); } -void Menu::enableAll() -{ - for(UINT i = 0; i < m_size; i++) - setEnabled(false, i); -} - void Menu::enable(const UINT index) { setEnabled(true, index); diff --git a/src/menu.hpp b/src/menu.hpp @@ -41,9 +41,7 @@ public: int show(int x, int y, HWND parent) const; int show(HWND control, HWND parent) const; - void enableAll(); void enable(UINT); - void disableAll(); void disable(UINT); void setEnabled(bool, UINT); diff --git a/src/path.cpp b/src/path.cpp @@ -140,14 +140,6 @@ void Path::removeLast() m_parts.pop_back(); } -string Path::basename() const -{ - if(empty()) - return {}; - - return m_parts.back(); -} - Path Path::dirname() const { if(empty()) diff --git a/src/path.hpp b/src/path.hpp @@ -44,7 +44,6 @@ public: size_t size() const { return m_parts.size(); } bool absolute() const { return m_absolute; } - std::string basename() const; Path dirname() const; std::string join(const char sep = 0) const; std::string first() const; diff --git a/src/receipt.cpp b/src/receipt.cpp @@ -54,12 +54,6 @@ void Receipt::addRemoval(const Path &path) m_flags |= RemovedFlag; } -void Receipt::addRemovals(const set<Path> &pathList) -{ - m_removals.insert(pathList.begin(), pathList.end()); - m_flags |= RemovedFlag; -} - void Receipt::addExport(const Path &path) { m_exports.insert(path); diff --git a/src/receipt.hpp b/src/receipt.hpp @@ -56,7 +56,6 @@ public: void setIndexChanged() { m_flags |= IndexChangedFlag; } void addInstall(const Version *, const Registry::Entry &); void addRemoval(const Path &p); - void addRemovals(const std::set<Path> &); void addExport(const Path &p); void addError(const ErrorInfo &); diff --git a/src/tabbar.cpp b/src/tabbar.cpp @@ -64,15 +64,6 @@ void TabBar::setCurrentIndex(const int index) switchPage(); } -void TabBar::removeTab(const int index) -{ - if(currentIndex() == index) - setCurrentIndex(index == 0 ? index + 1 : index - 1); - - if(TabCtrl_DeleteItem(handle(), index)) - m_pages.erase(m_pages.begin() + index); -} - void TabBar::setFocus() { const int index = currentIndex(); diff --git a/src/tabbar.hpp b/src/tabbar.hpp @@ -37,7 +37,6 @@ public: int addTab(const Tab &); int currentIndex() const; void setCurrentIndex(int); - void removeTab(int); void setFocus(); int count() const; void clear(); diff --git a/test/path.cpp b/test/path.cpp @@ -23,14 +23,12 @@ TEST_CASE("append path components", M) { REQUIRE(path.size() == 0); REQUIRE(path.join() == string()); REQUIRE(path.dirname().empty()); - REQUIRE(path.basename().empty()); path.append("hello"); REQUIRE_FALSE(path.empty()); REQUIRE(path.size() == 1); REQUIRE(path.join() == "hello"); REQUIRE(path.dirname().empty()); - REQUIRE(path.basename() == "hello"); path.append("world"); REQUIRE(path.size() == 2); @@ -40,7 +38,6 @@ TEST_CASE("append path components", M) { REQUIRE(path.join() == "hello\\world"); #endif REQUIRE(path.dirname().join() == "hello"); - REQUIRE(path.basename() == "world"); path.append("test"); REQUIRE(path.size() == 3); @@ -50,7 +47,6 @@ TEST_CASE("append path components", M) { REQUIRE(path.join() == "hello\\world\\test"); #endif REQUIRE(path.dirname() == Path("hello/world")); - REQUIRE(path.basename() == "test"); } TEST_CASE("concatenate paths", M) {