[Libreoffice-commits] online.git: common/FileUtil.cpp kit/Kit.cpp test/UnitTileCache.cpp wsd/TileCache.cpp
Noel Grandin
noel.grandin at collabora.co.uk
Tue Dec 27 10:26:41 UTC 2016
common/FileUtil.cpp | 5 -----
kit/Kit.cpp | 14 --------------
test/UnitTileCache.cpp | 15 ---------------
wsd/TileCache.cpp | 5 -----
4 files changed, 39 deletions(-)
New commits:
commit f53669cf9d23154076c9789a38c5e96630481806
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date: Fri Dec 23 08:36:59 2016 +0200
loplugin:unreffun
Change-Id: I06b13a5c035f6ae4dd4b414f49a0987c019feea5
Reviewed-on: https://gerrit.libreoffice.org/32365
Reviewed-by: Tor Lillqvist <tml at collabora.com>
Tested-by: Tor Lillqvist <tml at collabora.com>
diff --git a/common/FileUtil.cpp b/common/FileUtil.cpp
index 4c3cce4..afe2634 100644
--- a/common/FileUtil.cpp
+++ b/common/FileUtil.cpp
@@ -120,11 +120,6 @@ namespace
{
}
- fs(dev_t d)
- : fs("", d)
- {
- }
-
std::string path;
dev_t dev;
};
diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index 1e398bf..c6d7c62 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -868,20 +868,6 @@ public:
private:
- static void DocumentCallback(const int nType, const char* pPayload, void* pData)
- {
- if (TerminationFlag)
- {
- return;
- }
-
- const std::string payload = pPayload ? pPayload : "(nil)";
- LOG_TRC("Document::DocumentCallback " << LOKitHelper::kitCallbackTypeToString(nType) <<
- " [" << payload << "].");
- Document* self = reinterpret_cast<Document*>(pData);
- self->broadcastCallbackToClients(nType, pPayload);
- }
-
/// Helper method to broadcast callback and its payload to all clients
void broadcastCallbackToClients(const int nType, const std::string& payload)
{
diff --git a/test/UnitTileCache.cpp b/test/UnitTileCache.cpp
index 262996e..4aa35aa 100644
--- a/test/UnitTileCache.cpp
+++ b/test/UnitTileCache.cpp
@@ -65,21 +65,6 @@ public:
break;
}
}
-
-private:
- void clientThread()
- {
- std::thread t([&]()
- {
- try
- {
- }
- catch (const Poco::Exception& exc)
- {
- exitTest(TestResult::Failed);
- }
- });
- }
};
UnitBase *unit_create_wsd(void)
diff --git a/wsd/TileCache.cpp b/wsd/TileCache.cpp
index 9f4b415..36ceead 100644
--- a/wsd/TileCache.cpp
+++ b/wsd/TileCache.cpp
@@ -96,11 +96,6 @@ struct TileCache::TileBeingRendered
std::chrono::steady_clock::time_point getStartTime() const { return _startTime; }
double getElapsedTimeMs() const { return std::chrono::duration_cast<std::chrono::milliseconds>
(std::chrono::steady_clock::now() - _startTime).count(); }
- void resetStartTime()
- {
- _startTime = std::chrono::steady_clock::now();
- }
-
private:
std::chrono::steady_clock::time_point _startTime;
TileDesc _tile;
More information about the Libreoffice-commits
mailing list